Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 104.3 kB / 16.27 MB, free: 6.414 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.001601/0.001601, allocations: 191.5 kB / 17.2 MB, free: 5.953 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.471/1.471, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 482.4 MB / 0.7553 GB, free: 6.949 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 56.45 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8743/0.8762, allocations: 162.2 MB / 1.083 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003001/0.8793, allocations: 1.469 MB / 1.084 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007957/0.8801, allocations: 462.5 kB / 1.085 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.882e-05/0.8802, allocations: 0.9688 kB / 1.085 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.8803, allocations: 8.766 kB / 1.085 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.463e-05/0.8804, allocations: 15.84 kB / 1.085 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.8806, allocations: 28.86 kB / 1.085 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.8808, allocations: 111.5 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.8809, allocations: 20.83 kB / 1.085 GB, free: 456 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.8811, allocations: 47.7 kB / 1.085 GB, free: 436 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.881e-05/0.8812, allocations: 43.44 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.8812, allocations: 8.656 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.296e-05/0.8812, allocations: 7.656 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.038e-05/0.8813, allocations: 19.47 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.437e-05/0.8814, allocations: 40.58 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.8816, allocations: 78.48 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8816, allocations: 0.7031 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8816, allocations: 1.531 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.8816, allocations: 0 / 1.085 GB, free: 348 kB / 0.8262 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.0007276/0.8823, allocations: 452.2 kB / 1.086 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.8824, allocations: 9.625 kB / 1.086 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.8824, allocations: 11.52 kB / 1.086 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.8827, allocations: 190.5 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.8827, allocations: 4.219 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.817e-05/0.8827, allocations: 10.61 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.8831, allocations: 117.8 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.8831, allocations: 0 / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.8831, allocations: 7.203 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.8831, allocations: 1.125 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.8835, allocations: 89.78 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006416/0.8841, allocations: 331.3 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.8845, allocations: 111.8 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.8847, allocations: 76.27 kB / 1.087 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.8847, allocations: 0 / 1.087 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000374/0.8851, allocations: 120.9 kB / 1.087 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.8851, allocations: 3.938 kB / 1.087 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0008089/0.8859, allocations: 280 kB / 1.087 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.886, allocations: 90.92 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.8862, allocations: 135.4 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.8862, allocations: 28.77 kB / 1.087 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.8863, allocations: 97.55 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.8863, allocations: 16.61 kB / 1.087 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.8864, allocations: 32.98 kB / 1.087 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.8866, allocations: 322.2 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.8868, allocations: 66.77 kB / 1.088 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.887, allocations: 63.38 kB / 1.088 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.8874, allocations: 186 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.8874, allocations: 1.156 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005381/0.888, allocations: 257.7 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.791e-05/0.888, allocations: 65.53 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.888, allocations: 0.625 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.8881, allocations: 1.5 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.8882, allocations: 13.55 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.8882, allocations: 1.719 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.8884, allocations: 27.3 kB / 1.088 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.8884, allocations: 11.75 kB / 1.088 GB, free: 13.96 MB / 0.8419 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.0001623/0.8886, allocations: 157 kB / 1.088 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.8886, allocations: 9.359 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.8887, allocations: 11.62 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.8887, allocations: 1.281 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8887, allocations: 0.6562 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.8887, allocations: 5.5 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.8889, allocations: 200.2 kB / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.8889, allocations: 0 / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.731e-05/0.889, allocations: 13.72 kB / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.889, allocations: 0 / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.889, allocations: 3.844 kB / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.889, allocations: 0 / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.8891, allocations: 1.406 kB / 1.089 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.8896, allocations: 251.2 kB / 1.089 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.8897, allocations: 82.59 kB / 1.089 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.8897, allocations: 8.203 kB / 1.089 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.8899, allocations: 23.53 kB / 1.089 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.89, allocations: 36.72 kB / 1.089 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.89, allocations: 11.33 kB / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.001e-05/0.8901, allocations: 100.5 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8901, allocations: 0 / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002164/0.8904, allocations: 30.03 kB / 1.089 GB, free: 13.22 MB / 0.8419 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.0001289/0.8905, allocations: 100.2 kB / 1.089 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006078/0.8911, allocations: 273 kB / 1.09 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.8911, allocations: 0 / 1.09 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.8914, allocations: 143.9 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.8916, allocations: 14.88 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006073/0.8922, allocations: 246.3 kB / 1.09 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.8926, allocations: 0.6887 MB / 1.091 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.794e-05/0.8927, allocations: 13.16 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.8927, allocations: 0 / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.003874/0.8966, allocations: 1.454 MB / 1.092 GB, free: 11.85 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches