Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conSysSta.TRoo|conSysSta.TRooSet|conSysSta.TOut|conSysSta.TOutLow|conSysSta.onSys",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conSysSta.TRoo|conSysSta.TRooSet|conSysSta.TOut|conSysSta.TOutLow|conSysSta.onSys",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008084/0.008084, allocations: 101 kB / 15.73 MB, free: 6.047 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.001989/0.001989, allocations: 188 kB / 16.67 MB, free: 5.977 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.724/2.724, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 63.89 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3583, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002569/0.3609, allocations: 0.9032 MB / 1.209 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.3622, allocations: 0.8896 MB / 1.209 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3623, allocations: 0 / 1.209 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.255e-05/0.3624, allocations: 7.875 kB / 1.209 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.3626, allocations: 19.8 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.3628, allocations: 47.89 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000176/0.363, allocations: 127.7 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3632, allocations: 57.48 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3634, allocations: 51.73 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.3635, allocations: 59.75 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.3635, allocations: 12 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.475e-05/0.3635, allocations: 12 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.459e-05/0.3636, allocations: 31.91 kB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.764e-05/0.3637, allocations: 55.67 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.3639, allocations: 155.4 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3639, allocations: 0 / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3639, allocations: 7.938 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.3639, allocations: 0 / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007561/0.3647, allocations: 439 kB / 1.211 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3647, allocations: 8.625 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.841e-05/0.3648, allocations: 16.75 kB / 1.211 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.3651, allocations: 208.9 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.3652, allocations: 12.38 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.3652, allocations: 16.12 kB / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.3655, allocations: 99.45 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3655, allocations: 0 / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.3655, allocations: 4 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.3655, allocations: 4 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3657, allocations: 71.95 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.3664, allocations: 412.3 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.3667, allocations: 78.61 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.3668, allocations: 40.84 kB / 1.211 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3668, allocations: 4 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.3669, allocations: 42.48 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3669, allocations: 0 / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000383/0.3673, allocations: 117.8 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.3673, allocations: 51.41 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.3675, allocations: 168.4 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.3675, allocations: 29.7 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.324e-05/0.3676, allocations: 108.3 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.3676, allocations: 23.8 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-05/0.3677, allocations: 33.64 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3678, allocations: 322.8 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.302e-05/0.3679, allocations: 31.98 kB / 1.212 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.3681, allocations: 58.55 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3682, allocations: 56.95 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3682, allocations: 0 / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002322/0.3685, allocations: 109.5 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.3685, allocations: 7.938 kB / 1.213 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3685, allocations: 0 / 1.213 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3685, allocations: 0 / 1.213 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.96e-05/0.3686, allocations: 20.02 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3687, allocations: 8 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.082e-05/0.3688, allocations: 11.89 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.3688, allocations: 8 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001193/0.3689, allocations: 113.8 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.3689, allocations: 15.84 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.369, allocations: 16.7 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.369, allocations: 4 kB / 1.213 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.369, allocations: 4 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.369, allocations: 0 / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.3693, allocations: 205.5 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3693, allocations: 0 / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.731e-05/0.3694, allocations: 15.98 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.3694, allocations: 7.938 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.3694, allocations: 3.984 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3694, allocations: 0 / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3694, allocations: 0 / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.3697, allocations: 195.4 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.3698, allocations: 92.86 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.3698, allocations: 4 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.3699, allocations: 7.984 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.37, allocations: 19.95 kB / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.37, allocations: 7.938 kB / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.952e-05/0.3701, allocations: 120.6 kB / 1.213 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3701, allocations: 4 kB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002388/0.3704, allocations: 16 kB / 1.213 GB, free: 3.457 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001284/0.3705, allocations: 99.25 kB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.3707, allocations: 79.92 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3708, allocations: 0 / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.763e-05/0.3709, allocations: 31.98 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.3712, allocations: 17.56 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000501/0.3717, allocations: 219.7 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.372, allocations: 0.7007 MB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.391e-05/0.3721, allocations: 20.64 kB / 1.215 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.818e-05/0.3721, allocations: 11.44 kB / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of SimCode: time 6.71e-07/0.3722, allocations: 0 / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of Templates: time 0.004035/0.3762, allocations: 1.146 MB / 1.216 GB, free: 1.086 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches