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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.00121, allocations: 183.3 kB / 498.1 MB, free: 5.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.729/1.729, allocations: 223.2 MB / 0.7948 GB, free: 18.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009893/0.0009893, allocations: 108 kB / 0.9346 GB, free: 7.109 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004385/0.0004386, allocations: 11.14 kB / 1.084 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3536, allocations: 142.3 MB / 1.223 GB, free: 89.59 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2048/0.5584, allocations: 150.2 MB / 1.37 GB, free: 3.207 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.5586, allocations: 75.95 kB / 1.37 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004671/0.5633, allocations: 1.549 MB / 1.371 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5633, allocations: 0 / 1.371 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.245e-06/0.5633, allocations: 0 / 1.371 GB, free: 1.578 MB / 0.8698 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.0005926/0.5639, allocations: 446.4 kB / 1.372 GB, free: 1.082 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.385e-05/0.564, allocations: 8.219 kB / 1.372 GB, free: 1.074 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.5641, allocations: 19.8 kB / 1.372 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.5643, allocations: 210.6 kB / 1.372 GB, free: 0.8125 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.5643, allocations: 4 kB / 1.372 GB, free: 0.8086 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.5644, allocations: 4 kB / 1.372 GB, free: 0.8047 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.5647, allocations: 125.6 kB / 1.372 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.5647, allocations: 4 kB / 1.372 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.5647, allocations: 0 / 1.372 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.5648, allocations: 3.984 kB / 1.372 GB, free: 0.668 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.5651, allocations: 99.94 kB / 1.372 GB, free: 0.5703 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005694/0.5656, allocations: 344.7 kB / 1.372 GB, free: 188 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.566, allocations: 122.5 kB / 1.372 GB, free: 56 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.566, allocations: 0 / 1.372 GB, free: 56 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.5663, allocations: 131.4 kB / 1.373 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.5663, allocations: 4 kB / 1.373 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0007287/0.567, allocations: 303.1 kB / 1.373 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.5671, allocations: 81.11 kB / 1.373 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.5672, allocations: 115 kB / 1.373 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.5673, allocations: 37.69 kB / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.5673, allocations: 92.05 kB / 1.373 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.5674, allocations: 27.75 kB / 1.373 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.5674, allocations: 4 kB / 1.373 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.5675, allocations: 322.8 kB / 1.373 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.5677, allocations: 71.95 kB / 1.374 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.5679, allocations: 71.94 kB / 1.374 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.5681, allocations: 119.3 kB / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5681, allocations: 0 / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004896/0.5686, allocations: 272.9 kB / 1.374 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.5687, allocations: 63.5 kB / 1.374 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5687, allocations: 3.938 kB / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.5687, allocations: 0 / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.5689, allocations: 23.91 kB / 1.374 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.5689, allocations: 7.953 kB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.569, allocations: 23.98 kB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.5691, allocations: 8 kB / 1.374 GB, free: 14.2 MB / 0.8855 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.5692, allocations: 151.5 kB / 1.374 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.5692, allocations: 7.906 kB / 1.374 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.5693, allocations: 12.38 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.5693, allocations: 0 / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.5693, allocations: 0 / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.5693, allocations: 11.94 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.5694, allocations: 189.6 kB / 1.374 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5695, allocations: 0 / 1.374 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.853e-05/0.5696, allocations: 19.97 kB / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5696, allocations: 0 / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.5696, allocations: 4 kB / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.5696, allocations: 0 / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5696, allocations: 0 / 1.375 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.5701, allocations: 270.8 kB / 1.375 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.453e-05/0.5702, allocations: 88.95 kB / 1.375 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.5702, allocations: 4 kB / 1.375 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.5703, allocations: 31.97 kB / 1.375 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.5705, allocations: 35.95 kB / 1.375 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.5705, allocations: 4 kB / 1.375 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.689e-05/0.5706, allocations: 98.08 kB / 1.375 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5706, allocations: 4 kB / 1.375 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002004/0.5708, allocations: 23.98 kB / 1.375 GB, free: 13.16 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001349/0.5709, allocations: 118.9 kB / 1.375 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005247/0.5715, allocations: 282.6 kB / 1.375 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5715, allocations: 0 / 1.375 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.5717, allocations: 143.4 kB / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.5719, allocations: 9.703 kB / 1.376 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005382/0.5725, allocations: 237.2 kB / 1.376 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.5728, allocations: 0.6965 MB / 1.376 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.637e-05/0.5728, allocations: 12.17 kB / 1.376 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/0.5729, allocations: 15.44 kB / 1.377 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of SimCode: time 1.9e-07/0.5729, allocations: 0 / 1.377 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of Templates: time 0.003812/0.5767, allocations: 1.518 MB / 1.378 GB, free: 10.05 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (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 & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,numReq.u[1],numReq.u[2],numReq.y Variables in the result:numReq.kind,numReq.nin,numReq.threShold,numReq.u[1],numReq.u[2],numReq.y,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time