Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.CHPs.BaseClasses.Validation.StandBy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.condition|transition2.condition|actMod",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.condition|transition2.condition|actMod",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 103.6 kB / 15.98 MB, free: 6.34 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.001171/0.001171, allocations: 193.1 kB / 16.91 MB, free: 6.184 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.347/1.347, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.711/2.711, allocations: 469.4 MB / 0.7423 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 69.8 kB / 0.9083 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3392, allocations: 159.1 MB / 1.064 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy): time 0.005452/0.3447, allocations: 3.116 MB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003375/0.3481, allocations: 1.794 MB / 1.069 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005206/0.3486, allocations: 11.94 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.35, allocations: 413.5 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0007489/0.3508, allocations: 243.1 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.3521, allocations: 420 kB / 1.07 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001163/0.3533, allocations: 0.811 MB / 1.07 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008593/0.3542, allocations: 0.496 MB / 1.071 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004998/0.3547, allocations: 302.8 kB / 1.071 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005196/0.3552, allocations: 326.5 kB / 1.071 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.3554, allocations: 60 kB / 1.071 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003235/0.3557, allocations: 116 kB / 1.072 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.356, allocations: 223.2 kB / 1.072 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003714/0.3564, allocations: 353.8 kB / 1.072 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.3571, allocations: 0.6393 MB / 1.073 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.3571, allocations: 4 kB / 1.073 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3572, allocations: 0 / 1.073 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.155e-05/0.3572, allocations: 0 / 1.073 GB, free: 6.043 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001839/0.359, allocations: 1.136 MB / 1.074 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3591, allocations: 8.031 kB / 1.074 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.3593, allocations: 95.75 kB / 1.074 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000779/0.3601, allocations: 0.5244 MB / 1.075 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.242e-05/0.3602, allocations: 71.25 kB / 1.075 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.3603, allocations: 55.94 kB / 1.075 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3613, allocations: 0.5463 MB / 1.075 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.3614, allocations: 4 kB / 1.075 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.3614, allocations: 24 kB / 1.075 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.3614, allocations: 16 kB / 1.075 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006705/0.3621, allocations: 339.7 kB / 1.076 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.3645, allocations: 1.924 MB / 1.077 GB, free: 1.07 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006215/0.3652, allocations: 350.8 kB / 1.078 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.3655, allocations: 170.3 kB / 1.078 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.3655, allocations: 7.75 kB / 1.078 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004906/0.366, allocations: 266.5 kB / 1.078 GB, free: 228 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 2.835e-06/0.366, allocations: 0 / 1.078 GB, free: 228 kB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.5855/0.9515, allocations: 489.2 kB / 1.079 GB, free: 23.24 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.9516, allocations: 202.3 kB / 1.079 GB, free: 23.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.9528, allocations: 0.7452 MB / 1.08 GB, free: 22.87 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.623e-05/0.9529, allocations: 48.05 kB / 1.08 GB, free: 22.82 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.9532, allocations: 370.1 kB / 1.08 GB, free: 22.56 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.9533, allocations: 115.4 kB / 1.08 GB, free: 22.49 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.9535, allocations: 141.6 kB / 1.08 GB, free: 22.43 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.66e-05/0.9536, allocations: 330.5 kB / 1.081 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.954, allocations: 137 kB / 1.081 GB, free: 22.06 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.9544, allocations: 319.1 kB / 1.081 GB, free: 21.81 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005636/0.955, allocations: 388.9 kB / 1.081 GB, free: 21.54 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.955, allocations: 2.031 kB / 1.081 GB, free: 21.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009031/0.9559, allocations: 0.5184 MB / 1.082 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.9559, allocations: 11.17 kB / 1.082 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.9559, allocations: 5.641 kB / 1.082 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/0.956, allocations: 12 kB / 1.082 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.9563, allocations: 71.97 kB / 1.082 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.9563, allocations: 13.12 kB / 1.082 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.9566, allocations: 58.41 kB / 1.082 GB, free: 21.26 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.9566, allocations: 25.92 kB / 1.082 GB, free: 21.26 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,transition1.t_start,$PRE.transition1.t_start,transition2.t_start,$PRE.transition2.t_start,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.avaSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition4.t_start,$PRE.transition4.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition3.localCondition,transition4.enableFire,transition3.t_start,$PRE.transition3.t_start,transition3.fire,transition3.enableFire,stateGraphRoot.activeSteps,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.inPort[2].occupied,off.localActive,$PRE.off.localActive,off.active,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEventScaled,$PRE.avaSig.combiTimeTable.nextTimeEventScaled,avaSig.combiTimeTable.nextTimeEvent,pumOn.oldActive,$PRE.pumOn.oldActive,pumOn.newActive,$PRE.pumOn.newActive,pumOn.localActive,$PRE.pumOn.localActive,pumOn.active,staBy.oldActive,$PRE.staBy.oldActive,staBy.newActive,$PRE.staBy.newActive,staBy.outPort[2].available,staBy.localActive,$PRE.staBy.localActive,staBy.active,transition2.enableFire,transition2.condition,transition1.enableFire,transition1.condition,actMod,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * 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.0003382/0.957, allocations: 273.9 kB / 1.082 GB, free: 21.08 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.363e-05/0.9571, allocations: 79.67 kB / 1.082 GB, free: 21.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008094/0.9579, allocations: 426 kB / 1.083 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.9579, allocations: 5.781 kB / 1.083 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.9579, allocations: 7.062 kB / 1.083 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.9579, allocations: 3.062 kB / 1.083 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.9595, allocations: 1.065 MB / 1.084 GB, free: 20.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.9595, allocations: 1.75 kB / 1.084 GB, free: 20.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.9596, allocations: 34.52 kB / 1.084 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.9596, allocations: 2.938 kB / 1.084 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.9597, allocations: 11.7 kB / 1.084 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.9597, allocations: 2.75 kB / 1.084 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.9597, allocations: 5.75 kB / 1.084 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.9604, allocations: 0.5261 MB / 1.084 GB, free: 19.96 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.534e-05/0.9605, allocations: 143.2 kB / 1.085 GB, free: 19.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-05/0.9606, allocations: 17.42 kB / 1.085 GB, free: 19.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.9608, allocations: 17.02 kB / 1.085 GB, free: 19.81 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.9609, allocations: 51.69 kB / 1.085 GB, free: 19.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.961, allocations: 19.7 kB / 1.085 GB, free: 19.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000611/0.9616, allocations: 0.4999 MB / 1.085 GB, free: 19.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9616, allocations: 0.7812 kB / 1.085 GB, free: 19.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006014/0.9622, allocations: 140.3 kB / 1.085 GB, free: 19.55 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 39 (transition4.t_start,transition3.enableFire,off.active,pumOn.localActive,staBy.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition3,$whenCondition2,$whenCondition1,actMod,transition1.condition,transition1.enableFire,transition2.condition,transition2.enableFire,staBy.active,staBy.outPort[2].available,staBy.newActive,staBy.oldActive,pumOn.active,pumOn.newActive,pumOn.oldActive,avaSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,off.localActive,off.inPort[2].occupied,off.newActive,off.oldActive,stateGraphRoot.activeSteps,transition3.fire,transition3.t_start,transition4.enableFire,transition2.t_start,transition1.t_start) * Number of discrete states: 10 (transition1.t_start,transition2.t_start,runSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEvent,staBy.newActive,pumOn.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,avaSig.combiTimeTable.nextTimeEventScaled,transition4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.001079/0.9633, allocations: 462.5 kB / 1.086 GB, free: 19.37 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000926/0.9642, allocations: 419.4 kB / 1.086 GB, free: 19.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.9642, allocations: 5.625 kB / 1.086 GB, free: 19.24 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.9646, allocations: 191 kB / 1.086 GB, free: 19.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.9653, allocations: 136.9 kB / 1.086 GB, free: 19.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.9674, allocations: 1.498 MB / 1.088 GB, free: 18.21 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004823/0.9679, allocations: 0.9585 MB / 1.089 GB, free: 17.48 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.968, allocations: 56.52 kB / 1.089 GB, free: 17.47 MB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.968, allocations: 0 / 1.089 GB, free: 17.47 MB / 0.8419 GB Notification: Performance of Templates: time 0.02132/0.9894, allocations: 8.984 MB / 1.098 GB, free: 16.12 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_StandBy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches