Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|optSta.tOpt|optSta.optOn|TSetHea.y|TSetCoo.y|optSta.TZon",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling") translateModel(Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|optSta.tOpt|optSta.optOn|TSetHea.y|TSetCoo.y|optSta.TZon",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 181.4 kB / 16.92 MB, free: 6.711 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.031/3.031, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0007182/0.0007185, allocations: 12.36 kB / 0.9034 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3284, allocations: 159.6 MB / 1.059 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling): time 0.006602/0.335, allocations: 5.478 MB / 1.065 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005471/0.3405, allocations: 2.75 MB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.3422, allocations: 39.81 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004691/0.3427, allocations: 87.17 kB / 1.067 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006005/0.3433, allocations: 83.36 kB / 1.068 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.3448, allocations: 422.8 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001138/0.3459, allocations: 0.802 MB / 1.069 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007125/0.3466, allocations: 418.2 kB / 1.069 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004259/0.3471, allocations: 226.8 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.3475, allocations: 250.3 kB / 1.07 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.946e-05/0.3476, allocations: 24 kB / 1.07 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003402/0.3479, allocations: 111.9 kB / 1.07 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.3481, allocations: 111.3 kB / 1.07 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003379/0.3485, allocations: 307.7 kB / 1.07 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008069/0.3493, allocations: 0.7599 MB / 1.071 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3493, allocations: 0 / 1.071 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.485e-06/0.3493, allocations: 0 / 1.071 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.862e-05/0.3493, allocations: 0 / 1.071 GB, free: 9.121 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.00188/0.3512, allocations: 0.9574 MB / 1.072 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3513, allocations: 11.97 kB / 1.072 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.3515, allocations: 87.91 kB / 1.072 GB, free: 8 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006916/0.3522, allocations: 490.8 kB / 1.072 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.3523, allocations: 49.69 kB / 1.072 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3524, allocations: 72.28 kB / 1.072 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.3536, allocations: 0.6159 MB / 1.073 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3537, allocations: 192 / 1.073 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.3537, allocations: 31.94 kB / 1.073 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.3538, allocations: 16 kB / 1.073 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.3548, allocations: 456.9 kB / 1.074 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003445/0.3583, allocations: 2.32 MB / 1.076 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.3605, allocations: 0.9562 MB / 1.077 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.361, allocations: 258 kB / 1.077 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.361, allocations: 4.375 kB / 1.077 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006051/0.3616, allocations: 273.3 kB / 1.077 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=51): time 2.594e-06/0.3617, allocations: 0 / 1.077 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51): time 0.001408/0.3631, allocations: 0.6233 MB / 1.078 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.3632, allocations: 111.2 kB / 1.078 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/0.3638, allocations: 486.8 kB / 1.078 GB, free: 1.004 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.25e-05/0.3639, allocations: 45.7 kB / 1.078 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.3642, allocations: 344.2 kB / 1.079 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.3643, allocations: 163.2 kB / 1.079 GB, free: 464 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3644, allocations: 69.67 kB / 1.079 GB, free: 388 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3646, allocations: 366.8 kB / 1.079 GB, free: 12 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/0.3651, allocations: 213.3 kB / 1.08 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005902/0.3657, allocations: 399.5 kB / 1.08 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/0.3667, allocations: 0.5417 MB / 1.081 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.3667, allocations: 3.938 kB / 1.081 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001434/0.3682, allocations: 0.6837 MB / 1.081 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.3684, allocations: 238.6 kB / 1.081 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/0.3684, allocations: 11.94 kB / 1.081 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.3684, allocations: 7.938 kB / 1.081 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.3689, allocations: 111.8 kB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.3689, allocations: 4 kB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/0.3696, allocations: 135.4 kB / 1.082 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.3697, allocations: 27.98 kB / 1.082 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.3697, allocations: 13.5 kB / 1.082 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001067/0.3708, allocations: 0.5538 MB / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.3708, allocations: 8.094 kB / 1.082 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.689e-06/0.3708, allocations: 8 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.3712, allocations: 99.77 kB / 1.082 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.3712, allocations: 8 kB / 1.082 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.3718, allocations: 111.5 kB / 1.082 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/0.3719, allocations: 27.98 kB / 1.083 GB, free: 12.62 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y,occSch.tNext,$PRE.occSch.tNext,occSch.tNonOcc,$PRE.occSch.tNonOcc,occSch.tOcc,$PRE.occSch.tOcc,occSch.occupied,$PRE.occSch.occupied,optSta.falEdg.not_u,$PRE.optSta.falEdg.not_u,optSta.falEdg.y,optSta.hysSta.greHys.y,$PRE.optSta.hysSta.greHys.y,$whenCondition3,conPID.con1.y,conPID1.con1.y,optSta.con3.y,optSta.con.y,optSta.optOn,TRoo.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0004028/0.3723, allocations: 282.7 kB / 1.083 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.3725, allocations: 67.17 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.3726, allocations: 61.83 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3726, allocations: 4 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3726, allocations: 0 / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3727, allocations: 3.984 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.3747, allocations: 1.173 MB / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3747, allocations: 0 / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.3751, allocations: 83.89 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.3752, allocations: 0 / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.3752, allocations: 15.98 kB / 1.084 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.3752, allocations: 4 kB / 1.084 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3752, allocations: 0 / 1.084 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.3766, allocations: 0.7947 MB / 1.085 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.3768, allocations: 140.3 kB / 1.085 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.024e-05/0.3768, allocations: 8 kB / 1.085 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.3772, allocations: 43.97 kB / 1.085 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.3773, allocations: 40.38 kB / 1.085 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.3773, allocations: 12 kB / 1.085 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004689/0.3778, allocations: 334.8 kB / 1.085 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3778, allocations: 0 / 1.085 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008712/0.3787, allocations: 271 kB / 1.086 GB, free: 9.211 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (TRoo.y,conPID1.I.y,conPID.I.y) * Number of discrete variables: 11 ($whenCondition3,$whenCondition1,$whenCondition2,optSta.hysSta.greHys.y,optSta.falEdg.y,optSta.falEdg.not_u,occSch.occupied,occSch.tOcc,occSch.tNonOcc,occSch.tNext,pul.booPul.y) * Number of discrete states: 3 (occSch.tNext,optSta.hysSta.greHys.y,optSta.falEdg.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002869/0.379, allocations: 163.1 kB / 1.086 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001828/0.3808, allocations: 0.9644 MB / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3808, allocations: 0 / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.3813, allocations: 227.5 kB / 1.087 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.382, allocations: 107.6 kB / 1.087 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.3842, allocations: 1.377 MB / 1.088 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.3849, allocations: 0.8985 MB / 1.089 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.385, allocations: 43.44 kB / 1.089 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of SimCode: time 7.72e-07/0.385, allocations: 0 / 1.089 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of Templates: time 0.0131/0.3981, allocations: 7.834 MB / 1.097 GB, free: 13.54 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_Validation_OptimalStartNoHeatingNoCooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches