Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.002176/0.002176, allocations: 194.9 kB / 16.14 MB, free: 6.715 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.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.841/2.841, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 68.39 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2957, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003116/0.2989, allocations: 2.13 MB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008823/0.2998, allocations: 0.5649 MB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.584e-05/0.2999, allocations: 3.938 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.3, allocations: 15.86 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.084e-05/0.3001, allocations: 23.72 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.3003, allocations: 83.92 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.3005, allocations: 243.4 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.3008, allocations: 110.9 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3009, allocations: 95.62 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.301, allocations: 119.4 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.72e-05/0.3011, allocations: 12 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.18e-05/0.3011, allocations: 16 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.3012, allocations: 43.83 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.618e-05/0.3013, allocations: 103.4 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.3015, allocations: 263.3 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3015, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.51e-07/0.3015, allocations: 4 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.3015, allocations: 3.938 kB / 1.071 GB, free: 7.055 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001108/0.3027, allocations: 0.6347 MB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.3027, allocations: 8.031 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.577e-05/0.3028, allocations: 28.66 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.303, allocations: 256.4 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.3031, allocations: 12.75 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.3031, allocations: 24.38 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.3037, allocations: 266.5 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3037, allocations: 3.938 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.3038, allocations: 12 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3038, allocations: 8 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006645/0.3044, allocations: 187.8 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.3055, allocations: 0.6247 MB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008008/0.3063, allocations: 218.5 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.3066, allocations: 88.78 kB / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.3067, allocations: 0 / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005186/0.3072, allocations: 196.5 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.3072, allocations: 0 / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001061/0.3083, allocations: 326.3 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.3084, allocations: 118.8 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.3085, allocations: 200.3 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.3086, allocations: 41.64 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.345e-05/0.3087, allocations: 148.2 kB / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.3087, allocations: 51.34 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.3088, allocations: 65.69 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.309, allocations: 330.8 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/0.3093, allocations: 112.2 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.3097, allocations: 175.7 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006577/0.3104, allocations: 303 kB / 1.076 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3104, allocations: 4 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008829/0.3113, allocations: 427.9 kB / 1.076 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.515e-05/0.3113, allocations: 85.11 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3114, allocations: 0 / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.3114, allocations: 7.938 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.3116, allocations: 51.89 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.3116, allocations: 0 / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.3119, allocations: 55.78 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.312, allocations: 12.03 kB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.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,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * 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.000139/0.3121, allocations: 152.7 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.3122, allocations: 19.8 kB / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007237/0.3129, allocations: 272.9 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3129, allocations: 3.938 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3129, allocations: 0 / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3129, allocations: 0 / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009265/0.3139, allocations: 0.5763 MB / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3139, allocations: 0 / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.3141, allocations: 35.84 kB / 1.077 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.3141, allocations: 3.984 kB / 1.077 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.3141, allocations: 4 kB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3141, allocations: 4 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3141, allocations: 0 / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.3148, allocations: 345.3 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.094e-05/0.3149, allocations: 92.86 kB / 1.078 GB, free: 104 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.3149, allocations: 15.92 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.3152, allocations: 39.95 kB / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3154, allocations: 47.92 kB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.3154, allocations: 8.047 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001054/0.3155, allocations: 142.9 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3155, allocations: 0 / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003012/0.3158, allocations: 55.84 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.0001409/0.316, allocations: 116.8 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008184/0.3168, allocations: 413.9 kB / 1.078 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.3168, allocations: 0 / 1.078 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.3172, allocations: 120.2 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.3175, allocations: 36.25 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008247/0.3184, allocations: 436 kB / 1.079 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3187, allocations: 0.7361 MB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.3188, allocations: 21.55 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.241e-05/0.3189, allocations: 19.42 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3189, allocations: 0 / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.005705/0.3246, allocations: 2.788 MB / 1.082 GB, free: 11.06 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)