Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.341/2.341, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 172.9 kB / 487.4 MB, free: 5.039 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 221.5 MB / 0.7824 GB, free: 0.957 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009253/0.0009253, allocations: 87.91 kB / 0.9219 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.928e-05, allocations: 3.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3209, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.437, allocations: 157.6 MB / 1.36 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/1.438, allocations: 73.84 kB / 1.36 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03214/1.47, allocations: 12.08 MB / 1.372 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.054e-06/1.47, allocations: 0 / 1.372 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.223e-05/1.47, allocations: 15.5 kB / 1.372 GB, free: 33.35 MB / 0.8386 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.002159/1.472, allocations: 0.8981 MB / 1.373 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/1.472, allocations: 11.84 kB / 1.373 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/1.473, allocations: 92.5 kB / 1.373 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/1.474, allocations: 481.4 kB / 1.373 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/1.474, allocations: 19.28 kB / 1.373 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/1.474, allocations: 42.69 kB / 1.373 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007739/1.475, allocations: 349.6 kB / 1.374 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008378/1.476, allocations: 496.6 kB / 1.374 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/1.476, allocations: 0 / 1.374 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.616e-05/1.476, allocations: 0 / 1.374 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/1.476, allocations: 15.38 kB / 1.374 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/1.479, allocations: 1.926 MB / 1.376 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/1.48, allocations: 0.8166 MB / 1.377 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/1.481, allocations: 229.9 kB / 1.377 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.804e-05/1.481, allocations: 4.281 kB / 1.377 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003549/1.481, allocations: 239.8 kB / 1.377 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 2.014e-06/1.481, allocations: 0 / 1.377 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.0007394/1.482, allocations: 410.4 kB / 1.378 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/1.482, allocations: 111.2 kB / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/1.482, allocations: 364.6 kB / 1.378 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.277e-05/1.482, allocations: 32.58 kB / 1.378 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/1.483, allocations: 320.3 kB / 1.378 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/1.483, allocations: 179.3 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/1.483, allocations: 3.969 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001746/1.483, allocations: 368.7 kB / 1.379 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/1.483, allocations: 153 kB / 1.379 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/1.484, allocations: 309.2 kB / 1.379 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/1.484, allocations: 181.8 kB / 1.38 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/1.484, allocations: 3.812 kB / 1.38 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008837/1.485, allocations: 0.5108 MB / 1.38 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000362/1.485, allocations: 0.7388 MB / 1.381 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/1.485, allocations: 7.922 kB / 1.381 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/1.486, allocations: 7.719 kB / 1.381 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/1.486, allocations: 102.5 kB / 1.381 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/1.486, allocations: 3.812 kB / 1.381 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005073/1.486, allocations: 104.4 kB / 1.381 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.215e-05/1.487, allocations: 26.77 kB / 1.381 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/1.487, allocations: 3.906 kB / 1.381 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007584/1.487, allocations: 438.7 kB / 1.381 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.487, allocations: 0 / 1.381 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/1.487, allocations: 11.64 kB / 1.381 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/1.488, allocations: 85.02 kB / 1.381 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.488, allocations: 7.781 kB / 1.381 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004845/1.488, allocations: 93.28 kB / 1.382 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/1.488, allocations: 26.08 kB / 1.382 GB, free: 28.57 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition5,$whenCondition4,$whenCondition2,$whenCondition3,$whenCondition1,$PRE.optSta.hysSta.greHys.y,optSta.hysSta.greHys.y,optSta.falEdg.y,$PRE.optSta.falEdg.not_u,optSta.falEdg.not_u,$PRE.occSch.occupied,occSch.occupied,$PRE.occSch.tOcc,occSch.tOcc,$PRE.occSch.tNonOcc,occSch.tNonOcc,$PRE.occSch.tNext,occSch.tNext,$PRE.pul.booPul.y,pul.booPul.y,booToRea1.u,TRoo.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001742/1.488, allocations: 126.2 kB / 1.382 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.203e-05/1.488, allocations: 54.31 kB / 1.382 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/1.489, allocations: 59.81 kB / 1.382 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/1.489, allocations: 7.797 kB / 1.382 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/1.489, allocations: 0 / 1.382 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.489, allocations: 0 / 1.382 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/1.49, allocations: 1.056 MB / 1.383 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.49, allocations: 4 kB / 1.383 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/1.49, allocations: 92.56 kB / 1.383 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/1.49, allocations: 7.828 kB / 1.383 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/1.491, allocations: 0 / 1.383 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/1.491, allocations: 11.75 kB / 1.383 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.491, allocations: 0 / 1.383 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009113/1.491, allocations: 0.7326 MB / 1.384 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.81e-05/1.492, allocations: 134.9 kB / 1.384 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/1.492, allocations: 7.062 kB / 1.384 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/1.492, allocations: 39.14 kB / 1.384 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/1.492, allocations: 35.27 kB / 1.384 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/1.492, allocations: 22.69 kB / 1.384 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002764/1.492, allocations: 276 kB / 1.384 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.032e-06/1.492, allocations: 0 / 1.384 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007612/1.493, allocations: 248 kB / 1.384 GB, free: 27.27 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TRoo.y,conPID1.I.y,conPID.I.y) * Number of discrete variables: 13 ($whenCondition5,$whenCondition4,$whenCondition2,$whenCondition3,$whenCondition1,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003181/1.493, allocations: 172.9 kB / 1.385 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001047/1.495, allocations: 0.842 MB / 1.385 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.495, allocations: 3.812 kB / 1.385 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/1.495, allocations: 192.4 kB / 1.386 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005881/1.495, allocations: 94.84 kB / 1.386 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/1.497, allocations: 0.7566 MB / 1.386 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/1.497, allocations: 0.9253 MB / 1.387 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004205/1.498, allocations: 96.61 kB / 1.387 GB, free: 25.64 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/1.498, allocations: 42.11 kB / 1.387 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.498, allocations: 0 / 1.387 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of Templates: time 0.01469/1.513, allocations: 7.152 MB / 1.394 GB, free: 22.19 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.makefile (rm -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.sim & ./Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Utilities_Validation_OptimalStartNoHeatingNoCooling.csv","../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.OptimalStartNoHeatingNoCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches