Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.condition|transition2.condition|actMod",fileNamePrefix="Buildings_10_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_10_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.00157/0.001571, allocations: 105.6 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.001692/0.001692, allocations: 189.8 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.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.545/2.545, allocations: 437.1 MB / 0.711 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 67.3 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.331, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy): time 0.005103/0.3362, allocations: 3.034 MB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003147/0.3393, allocations: 1.817 MB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003114/0.3397, allocations: 11.94 kB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.341, allocations: 426.2 kB / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006186/0.3416, allocations: 263.2 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.3428, allocations: 476.4 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009045/0.3437, allocations: 0.8071 MB / 1.025 GB, free: 3.801 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006469/0.3444, allocations: 492 kB / 1.025 GB, free: 3.312 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003453/0.3447, allocations: 302.9 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003681/0.3451, allocations: 314.5 kB / 1.026 GB, free: 2.707 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.3452, allocations: 56 kB / 1.026 GB, free: 2.652 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.3455, allocations: 127.9 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002319/0.3457, allocations: 219.2 kB / 1.026 GB, free: 2.312 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003329/0.3461, allocations: 345.8 kB / 1.026 GB, free: 1.973 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009248/0.347, allocations: 0.8407 MB / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.347, allocations: 0 / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.452e-06/0.347, allocations: 0 / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.909e-06/0.347, allocations: 0 / 1.027 GB, free: 1.129 MB / 0.795 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.001734/0.3488, allocations: 1.14 MB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3488, allocations: 8.031 kB / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.349, allocations: 91.91 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007136/0.3497, allocations: 0.5126 MB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.434e-05/0.3498, allocations: 75.25 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.921e-05/0.3499, allocations: 55.94 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008845/0.3508, allocations: 0.5515 MB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3508, allocations: 0 / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.415e-05/0.3509, allocations: 16 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3509, allocations: 12 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006178/0.3515, allocations: 355.6 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002363/0.3539, allocations: 1.928 MB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.3546, allocations: 355.7 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.3549, allocations: 167.5 kB / 1.032 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.3549, allocations: 11.73 kB / 1.032 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004724/0.3554, allocations: 266.5 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=44): time 1.774e-06/0.3554, allocations: 0 / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=44): time 0.00103/0.3564, allocations: 0.4932 MB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.3566, allocations: 196.3 kB / 1.033 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009746/0.3576, allocations: 0.7423 MB / 1.034 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.3577, allocations: 49.7 kB / 1.034 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.358, allocations: 372.8 kB / 1.034 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.3581, allocations: 110.6 kB / 1.035 GB, free: 9.277 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.3583, allocations: 142.2 kB / 1.035 GB, free: 9.133 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3585, allocations: 330 kB / 1.035 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.3588, allocations: 137.2 kB / 1.035 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.3592, allocations: 335.3 kB / 1.035 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.3599, allocations: 385.2 kB / 1.036 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3599, allocations: 7.938 kB / 1.036 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009015/0.3608, allocations: 0.5221 MB / 1.036 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3608, allocations: 4 kB / 1.036 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3608, allocations: 8.594 kB / 1.036 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.3608, allocations: 4 kB / 1.036 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.3611, allocations: 75.84 kB / 1.036 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.3611, allocations: 15.92 kB / 1.036 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.3614, allocations: 59.52 kB / 1.036 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.3615, allocations: 27.94 kB / 1.036 GB, free: 7.105 MB / 0.8106 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.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.outPort[1].reset,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.localCondition,transition1.enableFire,transition1.localCondition,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.0003768/0.3619, allocations: 282.2 kB / 1.037 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.362, allocations: 75.06 kB / 1.037 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008105/0.3628, allocations: 423.9 kB / 1.037 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.3628, allocations: 11.94 kB / 1.037 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3628, allocations: 3.938 kB / 1.037 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3628, allocations: 11.98 kB / 1.037 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.3645, allocations: 1.071 MB / 1.038 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3645, allocations: 0 / 1.038 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.3646, allocations: 31.92 kB / 1.038 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/0.3646, allocations: 4 kB / 1.038 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.3647, allocations: 11.98 kB / 1.038 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3647, allocations: 4 kB / 1.038 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3647, allocations: 3.938 kB / 1.038 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008082/0.3655, allocations: 0.528 MB / 1.039 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.3656, allocations: 144.1 kB / 1.039 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.3657, allocations: 15.98 kB / 1.039 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.3659, allocations: 15.98 kB / 1.039 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.3661, allocations: 47.89 kB / 1.039 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.3661, allocations: 23.98 kB / 1.039 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006238/0.3667, allocations: 0.4951 MB / 1.04 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3667, allocations: 0 / 1.04 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005525/0.3673, allocations: 147.6 kB / 1.04 GB, free: 3.66 MB / 0.8106 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.active,staBy.active,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition3,$whenCondition2,$whenCondition1,actMod,transition1.localCondition,transition1.enableFire,transition2.localCondition,transition2.enableFire,staBy.localActive,staBy.outPort[2].available,staBy.newActive,staBy.oldActive,pumOn.localActive,pumOn.outPort[1].reset,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.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.001663/0.369, allocations: 457.4 kB / 1.04 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009222/0.3699, allocations: 437.9 kB / 1.041 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3699, allocations: 0 / 1.041 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.3703, allocations: 200.5 kB / 1.041 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.371, allocations: 135.7 kB / 1.041 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.373, allocations: 1.279 MB / 1.042 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.3737, allocations: 0.9534 MB / 1.043 GB, free: 316 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.3738, allocations: 55.42 kB / 1.043 GB, free: 260 kB / 0.8106 GB Notification: Performance of SimCode: time 6.91e-07/0.3738, allocations: 0 / 1.043 GB, free: 260 kB / 0.8106 GB Notification: Performance of Templates: time 0.02032/0.3941, allocations: 9.017 MB / 1.052 GB, free: 7.285 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_StandBy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches