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.001293/0.001293, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001727/0.001727, allocations: 191.2 kB / 16.25 MB, free: 6.637 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00255/0.00255, allocations: 294.7 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.054/1.054, allocations: 178.6 MB / 0.507 GB, free: 4.695 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 99.41 kB / 0.6059 GB, free: 25.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1844, allocations: 89.16 MB / 0.693 GB, free: 4.625 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004859/0.1893, allocations: 2.117 MB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1906, allocations: 0.5559 MB / 0.6956 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.1908, allocations: 7.938 kB / 0.6956 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1909, allocations: 15.8 kB / 0.6956 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1911, allocations: 38.53 kB / 0.6957 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.1914, allocations: 75.92 kB / 0.6958 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.1919, allocations: 267.4 kB / 0.696 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.1922, allocations: 114.8 kB / 0.6961 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.1924, allocations: 103.6 kB / 0.6962 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1926, allocations: 123.5 kB / 0.6963 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.1926, allocations: 31.94 kB / 0.6964 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.204e-05/0.1927, allocations: 24 kB / 0.6964 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.1928, allocations: 55.83 kB / 0.6964 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.193, allocations: 115.4 kB / 0.6966 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.1934, allocations: 267.1 kB / 0.6968 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1934, allocations: 0 / 0.6968 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1934, allocations: 0 / 0.6968 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1934, allocations: 4 kB / 0.6968 GB, free: 0.7266 MB / 494.1 MB 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.001563/0.195, allocations: 0.6409 MB / 0.6974 GB, free: 12 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.195, allocations: 8.031 kB / 0.6974 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.1952, allocations: 28.83 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.1956, allocations: 252.4 kB / 0.6977 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.1956, allocations: 20.73 kB / 0.6977 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.918e-05/0.1957, allocations: 24.38 kB / 0.6978 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00087/0.1966, allocations: 270.3 kB / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1966, allocations: 0 / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.1966, allocations: 8 kB / 0.698 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1967, allocations: 4 kB / 0.698 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009436/0.1976, allocations: 199.8 kB / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.1992, allocations: 0.613 MB / 0.6988 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2003, allocations: 234.4 kB / 0.699 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.2008, allocations: 88.78 kB / 0.6991 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.2008, allocations: 0 / 0.6991 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007493/0.2016, allocations: 191.1 kB / 0.6993 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 2.234e-06/0.2016, allocations: 0 / 0.6993 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.001554/0.2032, allocations: 334.7 kB / 0.6996 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/0.2033, allocations: 106.8 kB / 0.6997 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.2036, allocations: 206.5 kB / 0.6999 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.2037, allocations: 37.7 kB / 0.7 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.2038, allocations: 152.1 kB / 0.7001 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.254e-05/0.2039, allocations: 55.33 kB / 0.7002 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.2041, allocations: 57.7 kB / 0.7002 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001935/0.2043, allocations: 330.8 kB / 0.7005 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.2048, allocations: 116.2 kB / 0.7006 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005789/0.2054, allocations: 179.1 kB / 0.7008 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009805/0.2064, allocations: 302.5 kB / 0.7011 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2065, allocations: 8 kB / 0.7011 GB, free: 12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001345/0.2078, allocations: 416.5 kB / 0.7015 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.283e-05/0.2079, allocations: 89.09 kB / 0.7016 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.2079, allocations: 8.156 kB / 0.7016 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.208, allocations: 3.938 kB / 0.7016 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.2083, allocations: 51.89 kB / 0.7016 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.2083, allocations: 0 / 0.7016 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004662/0.2088, allocations: 51.8 kB / 0.7017 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.2088, allocations: 12 kB / 0.7017 GB, free: 11.34 MB / 0.4981 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.0002247/0.2091, allocations: 152.7 kB / 0.7019 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.2091, allocations: 15.81 kB / 0.7019 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.2102, allocations: 264.9 kB / 0.7021 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2103, allocations: 7.938 kB / 0.7021 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2103, allocations: 0 / 0.7021 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.2103, allocations: 4 kB / 0.7021 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.2116, allocations: 0.5684 MB / 0.7027 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2116, allocations: 0 / 0.7027 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2118, allocations: 43.89 kB / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.2118, allocations: 0 / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.2119, allocations: 4 kB / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2119, allocations: 3.938 kB / 0.7027 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2119, allocations: 4 kB / 0.7027 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007425/0.2126, allocations: 345.1 kB / 0.7031 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.456e-05/0.2127, allocations: 100.8 kB / 0.7032 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.2128, allocations: 4 kB / 0.7032 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.2131, allocations: 43.94 kB / 0.7032 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2132, allocations: 47.89 kB / 0.7033 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.2132, allocations: 11.98 kB / 0.7033 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001341/0.2134, allocations: 148 kB / 0.7034 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2134, allocations: 0 / 0.7034 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003085/0.2137, allocations: 55.84 kB / 0.7035 GB, free: 9.445 MB / 0.4981 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.0001627/0.2139, allocations: 121 kB / 0.7036 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009293/0.2148, allocations: 425.9 kB / 0.704 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2148, allocations: 0 / 0.704 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.2152, allocations: 111.9 kB / 0.7041 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.2156, allocations: 40.22 kB / 0.7041 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008409/0.2164, allocations: 430.4 kB / 0.7045 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.2168, allocations: 0.7359 MB / 0.7053 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.2169, allocations: 25.53 kB / 0.7053 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.006e-05/0.217, allocations: 27.42 kB / 0.7053 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.217, allocations: 0 / 0.7053 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of Templates: time 0.006732/0.2237, allocations: 2.955 MB / 0.7082 GB, free: 4.559 MB / 0.4981 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)