Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.592/1.592, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001327/0.001327, allocations: 189.2 kB / 366.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.1 MB / 0.6256 GB, free: 5.832 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 94.47 kB / 0.7395 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.012e-05/1.033e-05, allocations: 4 kB / 0.859 GB, free: 13.32 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8147/0.8147, allocations: 116.3 MB / 0.9726 GB, free: 68.26 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.064/5.879, allocations: 2.086 GB / 3.059 GB, free: 354.5 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/5.879, allocations: 94.48 kB / 3.059 GB, free: 354.5 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.856/8.735, allocations: 1.037 GB / 4.096 GB, free: 24.18 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001591/8.735, allocations: 44 kB / 4.096 GB, free: 24.13 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.00503/8.74, allocations: 2.072 MB / 4.098 GB, free: 21.99 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/8.74, allocations: 16.03 kB / 4.098 GB, free: 21.97 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004483/8.745, allocations: 0.657 MB / 4.099 GB, free: 21.31 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003732/8.748, allocations: 1.462 MB / 4.1 GB, free: 19.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/8.749, allocations: 126.2 kB / 4.1 GB, free: 19.67 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002293/8.749, allocations: 75.91 kB / 4.1 GB, free: 19.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001873/8.751, allocations: 1.032 MB / 4.101 GB, free: 18.56 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/8.753, allocations: 1.219 MB / 4.102 GB, free: 17.27 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.335e-05/8.753, allocations: 0 / 4.102 GB, free: 17.27 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/8.753, allocations: 0 / 4.102 GB, free: 17.27 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.686e-05/8.753, allocations: 42.22 kB / 4.102 GB, free: 17.23 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009056/8.762, allocations: 5.959 MB / 4.108 GB, free: 10.98 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008662/8.763, allocations: 0.6032 MB / 4.109 GB, free: 10.38 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005694/8.764, allocations: 488.1 kB / 4.109 GB, free: 9.898 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006198/8.764, allocations: 490.1 kB / 4.11 GB, free: 9.328 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006928/8.765, allocations: 0.5398 MB / 4.11 GB, free: 8.77 MB / 0.948 GB Notification: Performance of pre-optimization done (n=87): time 4.248e-06/8.765, allocations: 0 / 4.11 GB, free: 8.77 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.008635/8.774, allocations: 3.162 MB / 4.113 GB, free: 5.543 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.728e-05/8.774, allocations: 192.7 kB / 4.114 GB, free: 5.312 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/8.775, allocations: 0.9133 MB / 4.114 GB, free: 4.391 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001692/8.775, allocations: 29.7 kB / 4.115 GB, free: 4.355 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000463/8.776, allocations: 497.5 kB / 4.115 GB, free: 3.863 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003254/8.776, allocations: 307.4 kB / 4.115 GB, free: 3.559 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/8.776, allocations: 0 / 4.115 GB, free: 3.559 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001049/8.776, allocations: 349.8 kB / 4.116 GB, free: 3.211 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005404/8.777, allocations: 389.8 kB / 4.116 GB, free: 2.832 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006692/8.778, allocations: 0.6029 MB / 4.117 GB, free: 2.145 MB / 0.948 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004272/8.782, allocations: 1.425 MB / 4.118 GB, free: 0.6992 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/8.782, allocations: 0 / 4.118 GB, free: 0.6992 MB / 0.948 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004609/8.787, allocations: 1.616 MB / 4.12 GB, free: 15.06 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006354/8.787, allocations: 1.261 MB / 4.121 GB, free: 13.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/8.787, allocations: 0 / 4.121 GB, free: 13.73 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/8.788, allocations: 407.2 kB / 4.121 GB, free: 13.32 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008601/8.789, allocations: 183.7 kB / 4.121 GB, free: 13.14 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007866/8.797, allocations: 6.335 MB / 4.128 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/8.799, allocations: 127.8 kB / 4.128 GB, free: 6.309 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/8.799, allocations: 40.14 kB / 4.128 GB, free: 6.27 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/8.799, allocations: 11.94 kB / 4.128 GB, free: 6.258 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003977/8.803, allocations: 1.421 MB / 4.129 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/8.803, allocations: 4 kB / 4.129 GB, free: 4.816 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/8.804, allocations: 415.7 kB / 4.129 GB, free: 4.398 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008016/8.805, allocations: 180 kB / 4.13 GB, free: 4.223 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4761/9.281, allocations: 7.196 MB / 4.137 GB, free: 227.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/9.284, allocations: 128.1 kB / 4.137 GB, free: 227.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/9.284, allocations: 37.88 kB / 4.137 GB, free: 227.6 MB / 0.9636 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004643/9.284, allocations: 164.9 kB / 4.137 GB, free: 227.4 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002929/9.285, allocations: 155.4 kB / 4.137 GB, free: 227.4 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003768/9.288, allocations: 1.409 MB / 4.139 GB, free: 227.4 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/9.288, allocations: 12 kB / 4.139 GB, free: 227.4 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/9.288, allocations: 3.656 kB / 4.139 GB, free: 227.4 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002771/9.291, allocations: 1.295 MB / 4.14 GB, free: 227.2 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006384/9.298, allocations: 3.118 MB / 4.143 GB, free: 226.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/9.298, allocations: 6.406 kB / 4.143 GB, free: 226.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009636/9.299, allocations: 203.9 kB / 4.143 GB, free: 226.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004174/9.299, allocations: 183.9 kB / 4.143 GB, free: 226.7 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/9.299, allocations: 18.23 kB / 4.143 GB, free: 226.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/9.302, allocations: 2.42 MB / 4.146 GB, free: 225 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/9.302, allocations: 14.41 kB / 4.146 GB, free: 225 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004196/9.306, allocations: 2.36 MB / 4.148 GB, free: 224.4 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008923/9.307, allocations: 359.6 kB / 4.148 GB, free: 224.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/9.307, allocations: 6.531 kB / 4.148 GB, free: 224.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/9.308, allocations: 135.4 kB / 4.148 GB, free: 224.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/9.308, allocations: 61 kB / 4.148 GB, free: 224.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.581e-05/9.309, allocations: 39.22 kB / 4.149 GB, free: 224.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001003/9.31, allocations: 0.7046 MB / 4.149 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.003726/9.313, allocations: 0.9384 MB / 4.15 GB, free: 224.2 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003494/9.317, allocations: 2.63 MB / 4.153 GB, free: 223.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003084/9.32, allocations: 2.4 MB / 4.155 GB, free: 222.7 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/9.32, allocations: 2.375 kB / 4.155 GB, free: 222.7 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0008232/9.321, allocations: 0.6555 MB / 4.156 GB, free: 222.5 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003544/9.324, allocations: 0.6902 MB / 4.156 GB, free: 222.5 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/9.33, allocations: 2.632 MB / 4.159 GB, free: 221.8 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/9.332, allocations: 1.487 MB / 4.16 GB, free: 221.1 MB / 0.9636 GB Notification: Performance of SimCode: time 1.202e-06/9.332, allocations: 0 / 4.16 GB, free: 221.1 MB / 0.9636 GB Notification: Performance of Templates: time 0.08141/9.413, allocations: 50.28 MB / 4.209 GB, free: 220.4 MB / 0.9636 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)