Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001604/0.001604, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001609/0.001609, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002481/0.002481, allocations: 288.8 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.21/1.21, allocations: 178.5 MB / 0.5079 GB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003169/0.003169, allocations: 103.8 kB / 0.6071 GB, free: 9.273 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.211, allocations: 89.14 MB / 0.6942 GB, free: 56 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004081/0.2152, allocations: 2.082 MB / 0.6962 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.2163, allocations: 0.5532 MB / 0.6968 GB, free: 13.39 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.2165, allocations: 4 kB / 0.6968 GB, free: 13.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2166, allocations: 19.73 kB / 0.6968 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.2168, allocations: 39.59 kB / 0.6968 GB, free: 13.33 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.2171, allocations: 91.88 kB / 0.6969 GB, free: 13.24 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003576/0.2174, allocations: 267.3 kB / 0.6972 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.2177, allocations: 112.5 kB / 0.6973 GB, free: 12.87 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.2179, allocations: 111.6 kB / 0.6974 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.2181, allocations: 123.4 kB / 0.6975 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.054e-05/0.2181, allocations: 28 kB / 0.6975 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.25e-05/0.2182, allocations: 24 kB / 0.6975 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.138e-05/0.2182, allocations: 59.81 kB / 0.6976 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2184, allocations: 111.5 kB / 0.6977 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.2187, allocations: 275.1 kB / 0.698 GB, free: 12.15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2187, allocations: 0 / 0.698 GB, free: 12.15 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.734e-06/0.2187, allocations: 0 / 0.698 GB, free: 12.15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.2187, allocations: 0 / 0.698 GB, free: 12.15 MB / 0.545 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.001245/0.22, allocations: 0.6331 MB / 0.6986 GB, free: 11.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.2201, allocations: 12.03 kB / 0.6986 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.2201, allocations: 28.66 kB / 0.6986 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.2205, allocations: 253 kB / 0.6989 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.2205, allocations: 16.75 kB / 0.6989 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.2206, allocations: 24.36 kB / 0.6989 GB, free: 11.08 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000655/0.2212, allocations: 274.2 kB / 0.6992 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2213, allocations: 0 / 0.6992 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.2213, allocations: 11.98 kB / 0.6992 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.2213, allocations: 8 kB / 0.6992 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006964/0.222, allocations: 187.8 kB / 0.6994 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.2232, allocations: 0.6285 MB / 0.7 GB, free: 9.918 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008573/0.2241, allocations: 214.5 kB / 0.7002 GB, free: 9.699 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.2244, allocations: 96.72 kB / 0.7003 GB, free: 9.602 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2245, allocations: 0 / 0.7003 GB, free: 9.602 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005806/0.2251, allocations: 187.2 kB / 0.7005 GB, free: 9.406 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 3.627e-06/0.2251, allocations: 0 / 0.7005 GB, free: 9.406 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.001145/0.2262, allocations: 342.6 kB / 0.7008 GB, free: 9.066 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.2263, allocations: 110.8 kB / 0.7009 GB, free: 8.934 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.2266, allocations: 199.3 kB / 0.7011 GB, free: 8.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.2266, allocations: 37.7 kB / 0.7011 GB, free: 8.688 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.2268, allocations: 152.2 kB / 0.7013 GB, free: 8.531 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.977e-05/0.2268, allocations: 47.44 kB / 0.7013 GB, free: 8.484 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.2269, allocations: 65.61 kB / 0.7014 GB, free: 8.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.2271, allocations: 334.8 kB / 0.7017 GB, free: 8.078 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.2275, allocations: 108.2 kB / 0.7018 GB, free: 7.969 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/0.2279, allocations: 175.8 kB / 0.702 GB, free: 7.773 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007159/0.2286, allocations: 302.5 kB / 0.7022 GB, free: 7.445 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2287, allocations: 0 / 0.7022 GB, free: 7.445 MB / 0.545 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000967/0.2296, allocations: 424.6 kB / 0.7027 GB, free: 7.008 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.326e-05/0.2297, allocations: 101 kB / 0.7027 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.2297, allocations: 0 / 0.7027 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.2298, allocations: 7.938 kB / 0.7028 GB, free: 6.883 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.23, allocations: 39.97 kB / 0.7028 GB, free: 6.844 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.23, allocations: 11.92 kB / 0.7028 GB, free: 6.832 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.2304, allocations: 55.92 kB / 0.7029 GB, free: 6.777 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.2304, allocations: 12 kB / 0.7029 GB, free: 6.766 MB / 0.545 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.000174/0.2306, allocations: 148 kB / 0.703 GB, free: 6.613 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.2306, allocations: 19.81 kB / 0.703 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007943/0.2314, allocations: 257.5 kB / 0.7033 GB, free: 6.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.2314, allocations: 7.938 kB / 0.7033 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2315, allocations: 0 / 0.7033 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.2315, allocations: 3.984 kB / 0.7033 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.2326, allocations: 0.5802 MB / 0.7039 GB, free: 5.691 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2326, allocations: 0 / 0.7039 GB, free: 5.691 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.2327, allocations: 35.89 kB / 0.7039 GB, free: 5.656 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2328, allocations: 0 / 0.7039 GB, free: 5.656 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.2328, allocations: 4 kB / 0.7039 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.2328, allocations: 0 / 0.7039 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.2328, allocations: 11.92 kB / 0.7039 GB, free: 5.641 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008926/0.2337, allocations: 345.5 kB / 0.7042 GB, free: 5.289 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.78e-05/0.2338, allocations: 100.8 kB / 0.7043 GB, free: 5.172 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.058e-05/0.2339, allocations: 8 kB / 0.7043 GB, free: 5.164 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.2342, allocations: 43.95 kB / 0.7044 GB, free: 5.121 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.2343, allocations: 39.94 kB / 0.7044 GB, free: 5.082 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.2343, allocations: 11.98 kB / 0.7044 GB, free: 5.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001481/0.2345, allocations: 140.2 kB / 0.7046 GB, free: 4.934 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.01e-07/0.2345, allocations: 4 kB / 0.7046 GB, free: 4.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003442/0.2349, allocations: 55.84 kB / 0.7046 GB, free: 4.875 MB / 0.545 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.0002158/0.2351, allocations: 115.5 kB / 0.7047 GB, free: 4.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.2361, allocations: 421.9 kB / 0.7051 GB, free: 4.301 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.2361, allocations: 4 kB / 0.7051 GB, free: 4.297 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.2365, allocations: 108.2 kB / 0.7052 GB, free: 4.191 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.2369, allocations: 39.69 kB / 0.7053 GB, free: 4.152 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.238, allocations: 397.7 kB / 0.7057 GB, free: 3.734 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.2385, allocations: 0.7359 MB / 0.7064 GB, free: 2.969 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.104e-05/0.2386, allocations: 31.42 kB / 0.7064 GB, free: 2.938 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.2386, allocations: 3.938 kB / 0.7064 GB, free: 2.934 MB / 0.545 GB Notification: Performance of Templates: time 0.00544/0.244, allocations: 2.871 MB / 0.7092 GB, free: 80 kB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)