Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007056/0.007056, allocations: 96.69 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 191.7 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.221/2.221, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 65 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2685, allocations: 140.4 MB / 1.087 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002849/0.2714, allocations: 1.48 MB / 1.089 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009262/0.2723, allocations: 456.4 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.309e-05/0.2724, allocations: 0 / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.2726, allocations: 7.875 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.006e-05/0.2727, allocations: 11.88 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2729, allocations: 39.94 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.2731, allocations: 111.7 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2733, allocations: 8.172 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.2734, allocations: 51.83 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.2736, allocations: 47.81 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.2736, allocations: 11.94 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.856e-05/0.2736, allocations: 12 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.215e-05/0.2737, allocations: 15.92 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.623e-05/0.2738, allocations: 35.86 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.2739, allocations: 83.97 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.274, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.274, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.274, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009781/0.275, allocations: 450.5 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.275, allocations: 8.031 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.865e-05/0.2751, allocations: 42.75 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.458e-05/0.2752, allocations: 8.891 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.2754, allocations: 192.2 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.2755, allocations: 8.312 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.2755, allocations: 12.38 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.276, allocations: 113.5 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.276, allocations: 0 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.707e-05/0.276, allocations: 8 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.276, allocations: 4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.2765, allocations: 87.92 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007686/0.2773, allocations: 328.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.2776, allocations: 110.5 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.2778, allocations: 72.94 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.2778, allocations: 0 / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003373/0.2782, allocations: 123.3 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.2782, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007158/0.2789, allocations: 279.2 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.279, allocations: 89.09 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.811e-05/0.2791, allocations: 125.8 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.2791, allocations: 29.7 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.2792, allocations: 100.1 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.2792, allocations: 19.91 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.2793, allocations: 29.7 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.2794, allocations: 322.8 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.2796, allocations: 67.95 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2798, allocations: 59.95 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.2801, allocations: 197.9 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2802, allocations: 0 / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004833/0.2806, allocations: 253 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.2807, allocations: 63.41 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2807, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2807, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.2809, allocations: 23.91 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2809, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.281, allocations: 19.94 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.2811, allocations: 11.94 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.2812, allocations: 151.5 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.2812, allocations: 7.953 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.2813, allocations: 12.38 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2813, allocations: 3.938 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2813, allocations: 3.984 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.2813, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.2814, allocations: 201.6 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2815, allocations: 7.969 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.623e-05/0.2815, allocations: 11.98 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2816, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2816, allocations: 4.25 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2816, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2816, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.2821, allocations: 254.6 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.2821, allocations: 81.06 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.2822, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.2823, allocations: 23.97 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.2824, allocations: 35.95 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2825, allocations: 8 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.87e-05/0.2825, allocations: 106.4 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2825, allocations: 3.938 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000205/0.2827, allocations: 24 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007444/0.2835, allocations: 0.7819 MB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004788/0.284, allocations: 266.7 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.284, allocations: 0 / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.2842, allocations: 135.3 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.2845, allocations: 17.86 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.2867, allocations: 1.749 MB / 1.097 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.2869, allocations: 0.6885 MB / 1.097 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.982e-05/0.287, allocations: 8 kB / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.2871, allocations: 23.42 kB / 1.097 GB, free: 7.289 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2871, allocations: 0 / 1.097 GB, free: 7.289 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.3064, allocations: 3.011 MB / 1.1 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.899/7.206, allocations: 6.25 kB / 1.1 GB, free: 4.383 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches