Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.7747/0.7747, allocations: 127.3 MB / 134.6 MB, free: 4.09 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001239/0.001239, allocations: 189.2 kB / 164.4 MB, free: 6.895 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.1 MB / 399.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009427/0.0009427, allocations: 83.06 kB / 476.3 MB, free: 8.914 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.043e-05/1.046e-05, allocations: 4 kB / 0.546 GB, free: 42.78 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2066, allocations: 76.74 MB / 0.6209 GB, free: 13.96 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.731/5.938, allocations: 2.162 GB / 2.783 GB, free: 49.63 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/5.938, allocations: 87.95 kB / 2.783 GB, free: 49.54 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.007/9.945, allocations: 1.031 GB / 3.815 GB, free: 9.746 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0003649/9.946, allocations: 47.98 kB / 3.815 GB, free: 9.699 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.007856/9.954, allocations: 2.092 MB / 3.817 GB, free: 7.539 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/9.954, allocations: 12.03 kB / 3.817 GB, free: 7.527 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005426/9.959, allocations: 0.6452 MB / 3.818 GB, free: 6.879 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006905/9.966, allocations: 1.612 MB / 3.819 GB, free: 5.215 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/9.966, allocations: 44 kB / 3.819 GB, free: 5.172 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006996/9.967, allocations: 72 kB / 3.819 GB, free: 5.102 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004092/9.971, allocations: 0.9887 MB / 3.82 GB, free: 4.109 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006085/9.977, allocations: 1.211 MB / 3.821 GB, free: 2.824 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/9.977, allocations: 0 / 3.821 GB, free: 2.824 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005414/9.978, allocations: 3.906 kB / 3.821 GB, free: 2.82 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/9.978, allocations: 42.25 kB / 3.821 GB, free: 2.777 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4332/10.41, allocations: 5.735 MB / 3.827 GB, free: 133.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009259/10.41, allocations: 0.5767 MB / 3.828 GB, free: 133.5 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006312/10.41, allocations: 463.2 kB / 3.828 GB, free: 133.5 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006346/10.41, allocations: 459 kB / 3.829 GB, free: 133 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007287/10.41, allocations: 0.5197 MB / 3.829 GB, free: 132.9 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=86): time 3.407e-06/10.41, allocations: 0 / 3.829 GB, free: 132.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=94): time 0.009384/10.42, allocations: 3.052 MB / 3.832 GB, free: 132.4 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/10.42, allocations: 193.8 kB / 3.832 GB, free: 132.2 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/10.43, allocations: 0.8879 MB / 3.833 GB, free: 132 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001526/10.43, allocations: 29.02 kB / 3.833 GB, free: 132 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004077/10.43, allocations: 0.4931 MB / 3.834 GB, free: 131.8 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/10.43, allocations: 306.2 kB / 3.834 GB, free: 131.6 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/10.43, allocations: 0 / 3.834 GB, free: 131.6 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.148e-05/10.43, allocations: 343.6 kB / 3.834 GB, free: 131.3 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005279/10.43, allocations: 364.5 kB / 3.835 GB, free: 131.3 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/10.43, allocations: 0.5788 MB / 3.835 GB, free: 131.1 MB / 0.6667 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.004036/10.43, allocations: 1.3 MB / 3.836 GB, free: 131 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/10.43, allocations: 3.594 kB / 3.836 GB, free: 131 MB / 0.6667 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004391/10.44, allocations: 1.539 MB / 3.838 GB, free: 130.8 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002761/10.44, allocations: 1.253 MB / 3.839 GB, free: 129.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/10.44, allocations: 5.625 kB / 3.839 GB, free: 129.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000997/10.44, allocations: 373.7 kB / 3.839 GB, free: 129.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009926/10.44, allocations: 153.3 kB / 3.84 GB, free: 129.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/10.44, allocations: 6.174 MB / 3.846 GB, free: 125.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/10.45, allocations: 93.27 kB / 3.846 GB, free: 125.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/10.45, allocations: 40.23 kB / 3.846 GB, free: 125.2 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/10.45, allocations: 3.531 kB / 3.846 GB, free: 125.2 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003069/10.45, allocations: 1.34 MB / 3.847 GB, free: 125.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/10.45, allocations: 6.781 kB / 3.847 GB, free: 125.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000918/10.45, allocations: 365.7 kB / 3.847 GB, free: 125.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006409/10.45, allocations: 139.3 kB / 3.848 GB, free: 125.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/10.46, allocations: 6.995 MB / 3.854 GB, free: 120.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/10.46, allocations: 76.52 kB / 3.854 GB, free: 120.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/10.46, allocations: 35.06 kB / 3.854 GB, free: 120.1 MB / 0.6667 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.0004863/10.46, allocations: 170.4 kB / 3.855 GB, free: 120 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002614/10.46, allocations: 154.1 kB / 3.855 GB, free: 119.9 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003792/10.46, allocations: 1.322 MB / 3.856 GB, free: 119.8 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/10.46, allocations: 10.72 kB / 3.856 GB, free: 119.8 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/10.46, allocations: 2.562 kB / 3.856 GB, free: 119.8 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002952/10.47, allocations: 1.204 MB / 3.857 GB, free: 119.6 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006947/10.47, allocations: 2.909 MB / 3.86 GB, free: 119.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/10.47, allocations: 9.812 kB / 3.86 GB, free: 119.2 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009433/10.47, allocations: 177.3 kB / 3.86 GB, free: 119.2 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004116/10.48, allocations: 153 kB / 3.86 GB, free: 119.1 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-05/10.48, allocations: 22.91 kB / 3.86 GB, free: 119.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004369/10.48, allocations: 3.224 MB / 3.864 GB, free: 116.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/10.48, allocations: 11.25 kB / 3.864 GB, free: 116.7 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004817/10.48, allocations: 2.221 MB / 3.866 GB, free: 116 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/10.49, allocations: 342.9 kB / 3.866 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/10.49, allocations: 13.5 kB / 3.866 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/10.49, allocations: 106.5 kB / 3.866 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/10.49, allocations: 64.12 kB / 3.866 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/10.49, allocations: 39.89 kB / 3.866 GB, free: 115.8 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001229/10.49, allocations: 0.6784 MB / 3.867 GB, free: 115.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.004544/10.49, allocations: 0.9051 MB / 3.868 GB, free: 115.7 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (81): * Single equations (assignments): 78 * 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.00398/10.5, allocations: 2.664 MB / 3.87 GB, free: 114.9 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003505/10.5, allocations: 2.321 MB / 3.873 GB, free: 114.1 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/10.5, allocations: 3.469 kB / 3.873 GB, free: 114.1 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000978/10.5, allocations: 0.734 MB / 3.873 GB, free: 113.9 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/10.51, allocations: 0.6628 MB / 3.874 GB, free: 113.9 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006611/10.51, allocations: 2.552 MB / 3.877 GB, free: 113.2 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/10.51, allocations: 1.506 MB / 3.878 GB, free: 112.5 MB / 0.6667 GB Notification: Performance of SimCode: time 8.62e-07/10.51, allocations: 0 / 3.878 GB, free: 112.5 MB / 0.6667 GB Notification: Performance of Templates: time 0.0814/10.59, allocations: 50.01 MB / 3.927 GB, free: 111.4 MB / 0.6667 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)