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.001104/0.001104, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001629/0.001628, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.461/1.461, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.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.796/2.796, allocations: 437 MB / 0.71 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 60.14 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7402/0.7419, allocations: 151.6 MB / 1.017 GB, free: 2.824 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy): time 0.004786/0.7467, allocations: 3.115 MB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002943/0.7497, allocations: 1.817 MB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002665/0.75, allocations: 11.94 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.7511, allocations: 402.5 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005561/0.7517, allocations: 235.1 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.7528, allocations: 440 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007933/0.7536, allocations: 0.811 MB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005754/0.7542, allocations: 497.8 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.7545, allocations: 310.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.7548, allocations: 318.5 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.639e-05/0.7549, allocations: 56 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.7551, allocations: 120 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.7553, allocations: 227.2 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002916/0.7556, allocations: 361.8 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007856/0.7564, allocations: 0.833 MB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.7564, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7564, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.505e-06/0.7564, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 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.001483/0.7579, allocations: 1.124 MB / 1.027 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.758, allocations: 8.031 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.7581, allocations: 99.8 kB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.7588, allocations: 0.5281 MB / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-05/0.7589, allocations: 75.19 kB / 1.028 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.038e-05/0.759, allocations: 55.94 kB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008597/0.7599, allocations: 0.5424 MB / 1.028 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.7599, allocations: 4 kB / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.513e-05/0.7599, allocations: 20 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.76, allocations: 12 kB / 1.028 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006106/0.7606, allocations: 347.6 kB / 1.029 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.7627, allocations: 1.92 MB / 1.031 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/0.7633, allocations: 346.8 kB / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.7636, allocations: 171.5 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.7637, allocations: 7.75 kB / 1.031 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/0.7641, allocations: 270.5 kB / 1.031 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.7641, allocations: 0 / 1.031 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.0009763/0.7651, allocations: 0.493 MB / 1.032 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.7652, allocations: 187.9 kB / 1.032 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007988/0.766, allocations: 0.75 MB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.7661, allocations: 50.06 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.7664, allocations: 364.8 kB / 1.033 GB, free: 1.578 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.169e-05/0.7665, allocations: 114.6 kB / 1.033 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.7667, allocations: 146.2 kB / 1.033 GB, free: 1.316 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.7668, allocations: 322 kB / 1.034 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.7671, allocations: 141.2 kB / 1.034 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/0.7675, allocations: 327.3 kB / 1.034 GB, free: 476 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.768, allocations: 397.1 kB / 1.035 GB, free: 16 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.7681, allocations: 3.938 kB / 1.035 GB, free: 12 kB / 0.7794 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008489/0.7689, allocations: 0.5183 MB / 1.035 GB, free: 15.48 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.7689, allocations: 9.562 kB / 1.035 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.769, allocations: 4 kB / 1.035 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.769, allocations: 8 kB / 1.035 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002573/0.7692, allocations: 67.84 kB / 1.035 GB, free: 15.4 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.7693, allocations: 16.48 kB / 1.035 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.7695, allocations: 63.52 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.7696, allocations: 24 kB / 1.035 GB, free: 15.3 MB / 0.795 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.0003189/0.7699, allocations: 278.1 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.192e-05/0.77, allocations: 79.09 kB / 1.036 GB, free: 14.94 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007631/0.7708, allocations: 431.8 kB / 1.036 GB, free: 14.51 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.7708, allocations: 4 kB / 1.036 GB, free: 14.51 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.7708, allocations: 4 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.7708, allocations: 0 / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.7723, allocations: 1.067 MB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.7724, allocations: 0 / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.7725, allocations: 31.92 kB / 1.037 GB, free: 13.35 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.7725, allocations: 4 kB / 1.037 GB, free: 13.34 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.7725, allocations: 12 kB / 1.037 GB, free: 13.33 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.7725, allocations: 3.984 kB / 1.037 GB, free: 13.33 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7725, allocations: 7.938 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000733/0.7733, allocations: 0.5247 MB / 1.038 GB, free: 12.77 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.7734, allocations: 140.1 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.7735, allocations: 19.98 kB / 1.038 GB, free: 12.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.7737, allocations: 15.98 kB / 1.038 GB, free: 12.58 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.7738, allocations: 47.89 kB / 1.038 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.7738, allocations: 19.98 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005729/0.7744, allocations: 0.499 MB / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7744, allocations: 4 kB / 1.038 GB, free: 12.01 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005515/0.775, allocations: 143.6 kB / 1.039 GB, free: 11.87 MB / 0.795 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.00132/0.7763, allocations: 445.4 kB / 1.039 GB, free: 11.58 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001015/0.7773, allocations: 433.8 kB / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.7774, allocations: 0 / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000371/0.7777, allocations: 191.2 kB / 1.04 GB, free: 10.97 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007658/0.7785, allocations: 144.5 kB / 1.04 GB, free: 10.84 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.7808, allocations: 1.442 MB / 1.041 GB, free: 9.355 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006595/0.7815, allocations: 0.9623 MB / 1.042 GB, free: 8.363 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003176/0.7818, allocations: 96.78 kB / 1.042 GB, free: 8.266 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.782, allocations: 51.42 kB / 1.042 GB, free: 8.215 MB / 0.795 GB Notification: Performance of SimCode: time 4.11e-07/0.782, allocations: 4 kB / 1.042 GB, free: 8.211 MB / 0.795 GB Notification: Performance of Templates: time 0.01564/0.7976, allocations: 6.673 MB / 1.049 GB, free: 1.602 MB / 0.795 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/jenkins/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