Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009059/0.0009059, allocations: 80.39 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009248/0.0009248, allocations: 170.2 kB / 24.87 MB, free: 8.828 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9073/0.9073, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.856/1.856, allocations: 377.9 MB / 0.6247 GB, free: 8.422 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.8128 GB, free: 280 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.509e-05/1.659e-05, allocations: 2.312 kB / 0.8128 GB, free: 276 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003491/0.003507, allocations: 2.183 MB / 0.815 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.004691, allocations: 0.6021 MB / 0.8156 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.004826, allocations: 9.125 kB / 0.8156 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.004958, allocations: 23.67 kB / 0.8156 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.005085, allocations: 48.28 kB / 0.8156 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.005396, allocations: 97.2 kB / 0.8157 GB, free: 13.31 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.00576, allocations: 303.2 kB / 0.816 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.005997, allocations: 99.5 kB / 0.8161 GB, free: 12.92 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.006254, allocations: 181.5 kB / 0.8163 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.006406, allocations: 95.72 kB / 0.8164 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 5.766e-05/0.006464, allocations: 32 kB / 0.8164 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.006504, allocations: 28 kB / 0.8164 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.006571, allocations: 71.73 kB / 0.8165 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 9.612e-05/0.006667, allocations: 89.59 kB / 0.8166 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.006955, allocations: 215.2 kB / 0.8168 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.006957, allocations: 0 / 0.8168 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of FrontEnd: time 6.81e-07/0.006958, allocations: 0 / 0.8168 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.006963, allocations: 4 kB / 0.8168 GB, free: 12.22 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009435/0.007906, allocations: 0.6946 MB / 0.8175 GB, free: 11.47 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.007945, allocations: 16.5 kB / 0.8175 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.611e-05/0.008041, allocations: 44.8 kB / 0.8175 GB, free: 11.41 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.008318, allocations: 206 kB / 0.8177 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.008348, allocations: 20.88 kB / 0.8177 GB, free: 11.16 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.008388, allocations: 20.91 kB / 0.8178 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.008854, allocations: 323.4 kB / 0.8181 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.008864, allocations: 4.188 kB / 0.8181 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.008892, allocations: 12.36 kB / 0.8181 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.008902, allocations: 7.938 kB / 0.8181 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.009052, allocations: 56.61 kB / 0.8182 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008937/0.009946, allocations: 0.5347 MB / 0.8187 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.01014, allocations: 95.83 kB / 0.8188 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.115e-05/0.01021, allocations: 37.34 kB / 0.8188 GB, free: 10 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.01023, allocations: 0.7812 kB / 0.8188 GB, free: 10 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.01045, allocations: 132.8 kB / 0.8189 GB, free: 9.859 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=20): time 1.704e-06/0.01045, allocations: 1.281 kB / 0.8189 GB, free: 9.859 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20): time 0.0003732/0.01083, allocations: 176.2 kB / 0.8191 GB, free: 9.684 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.0109, allocations: 132.5 kB / 0.8192 GB, free: 9.523 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.01113, allocations: 275.1 kB / 0.8195 GB, free: 9.238 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.01118, allocations: 45.69 kB / 0.8195 GB, free: 9.188 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.01132, allocations: 212.5 kB / 0.8197 GB, free: 8.977 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.01137, allocations: 47.62 kB / 0.8198 GB, free: 8.93 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.0115, allocations: 83.53 kB / 0.8199 GB, free: 8.84 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.01168, allocations: 0.5078 MB / 0.8204 GB, free: 8.32 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.01181, allocations: 118.7 kB / 0.8205 GB, free: 8.188 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.01204, allocations: 288.1 kB / 0.8207 GB, free: 7.832 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.01228, allocations: 210.4 kB / 0.8209 GB, free: 7.586 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.01228, allocations: 0 / 0.8209 GB, free: 7.586 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004902/0.01277, allocations: 387.3 kB / 0.8213 GB, free: 7.168 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.179e-05/0.01283, allocations: 93.09 kB / 0.8214 GB, free: 7.059 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.01284, allocations: 3.938 kB / 0.8214 GB, free: 7.055 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.01285, allocations: 4 kB / 0.8214 GB, free: 7.051 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.01306, allocations: 52.41 kB / 0.8215 GB, free: 7 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.01307, allocations: 0.5312 kB / 0.8215 GB, free: 7 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.0133, allocations: 61.08 kB / 0.8215 GB, free: 6.941 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.01333, allocations: 11.94 kB / 0.8215 GB, free: 6.93 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (antFre.disErr.y,$PRE.antFre.disErr.y,antFre.disErr.local_reset,antFre.disErr.local_set,antFre.intConOne.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,antFre.errAndSetOn.y,antFre.ySetOn.y,$PRE.antFre.ySetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * 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.0001676/0.0135, allocations: 184.7 kB / 0.8217 GB, free: 6.738 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.686e-05/0.01356, allocations: 32.5 kB / 0.8217 GB, free: 6.707 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.01384, allocations: 151.4 kB / 0.8219 GB, free: 6.555 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.01384, allocations: 7.031 kB / 0.8219 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01384, allocations: 0 / 0.8219 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.01385, allocations: 0 / 0.8219 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.01439, allocations: 457.7 kB / 0.8223 GB, free: 6.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.01439, allocations: 4 kB / 0.8223 GB, free: 6.066 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.978e-05/0.01449, allocations: 19.98 kB / 0.8223 GB, free: 6.047 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.0145, allocations: 0 / 0.8223 GB, free: 6.047 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.01451, allocations: 3.984 kB / 0.8223 GB, free: 6.043 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.01452, allocations: 6.5 kB / 0.8224 GB, free: 6.039 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01452, allocations: 0 / 0.8224 GB, free: 6.039 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.01484, allocations: 314.1 kB / 0.8227 GB, free: 5.715 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.082e-05/0.01487, allocations: 23.84 kB / 0.8227 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.01492, allocations: 8 kB / 0.8227 GB, free: 5.684 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.01512, allocations: 32.89 kB / 0.8227 GB, free: 5.652 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.01525, allocations: 55.8 kB / 0.8228 GB, free: 5.598 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.01527, allocations: 9.125 kB / 0.8228 GB, free: 5.59 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001079/0.01538, allocations: 180.5 kB / 0.8229 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8e-08/0.01538, allocations: 0 / 0.8229 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00035/0.01573, allocations: 65.02 kB / 0.823 GB, free: 5.352 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001199/0.01585, allocations: 118 kB / 0.8231 GB, free: 5.227 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004032/0.01625, allocations: 376.4 kB / 0.8235 GB, free: 4.801 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01625, allocations: 0 / 0.8235 GB, free: 4.801 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.01638, allocations: 58.45 kB / 0.8235 GB, free: 4.742 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.01675, allocations: 43.88 kB / 0.8236 GB, free: 4.703 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008574/0.01761, allocations: 392.5 kB / 0.824 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.963e-05/0.01766, allocations: 78.08 kB / 0.824 GB, free: 4.199 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001087/0.01777, allocations: 20.45 kB / 0.824 GB, free: 4.18 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.018, allocations: 130.1 kB / 0.8242 GB, free: 4.051 MB / 0.7292 GB Notification: Performance of SimCode: time 1.152e-06/0.018, allocations: 0 / 0.8242 GB, free: 4.051 MB / 0.7292 GB Notification: Performance of Templates: time 0.00832/0.02632, allocations: 4.317 MB / 0.8284 GB, free: 15.8 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.731782671995461]