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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) [: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.7592/0.7592, allocations: 127.4 MB / 134.6 MB, free: 4.082 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.001614/0.001614, allocations: 181.3 kB / 164.4 MB, free: 6.887 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.793/1.793, allocations: 205.1 MB / 399.1 MB, free: 6.102 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.001018/0.001018, allocations: 93.64 kB / 476.3 MB, free: 8.852 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3833/0.3844, allocations: 82.88 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.5788, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.147/6.726, allocations: 2.162 GB / 2.783 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/6.726, allocations: 87.95 kB / 2.784 GB, free: 3.414 MB / 0.6355 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 4.233/10.96, allocations: 1.033 GB / 3.817 GB, free: 4.516 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.597e-05/10.96, allocations: 8 kB / 3.817 GB, free: 4.508 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005412/10.96, allocations: 0.6531 MB / 3.818 GB, free: 3.852 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006458/10.97, allocations: 1.603 MB / 3.819 GB, free: 2.195 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/10.97, allocations: 41.2 kB / 3.819 GB, free: 2.156 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006511/10.97, allocations: 79.94 kB / 3.819 GB, free: 2.078 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003329/10.98, allocations: 0.9965 MB / 3.82 GB, free: 1.078 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4443/11.42, allocations: 1.207 MB / 3.821 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.077e-05/11.42, allocations: 0 / 3.821 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/11.42, allocations: 2.344 kB / 3.822 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.199e-05/11.42, allocations: 42.44 kB / 3.822 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01095/11.43, allocations: 5.737 MB / 3.827 GB, free: 157.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/11.43, allocations: 0.5785 MB / 3.828 GB, free: 157.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007545/11.43, allocations: 458.3 kB / 3.828 GB, free: 157.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008563/11.43, allocations: 466.1 kB / 3.829 GB, free: 156.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008309/11.43, allocations: 0.5186 MB / 3.829 GB, free: 156.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=86): time 5.26e-06/11.43, allocations: 0 / 3.829 GB, free: 156.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=94): time 0.01002/11.44, allocations: 3.04 MB / 3.832 GB, free: 155.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/11.45, allocations: 194.5 kB / 3.832 GB, free: 155.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/11.45, allocations: 0.8897 MB / 3.833 GB, free: 155.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001974/11.45, allocations: 35.48 kB / 3.833 GB, free: 155.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006273/11.45, allocations: 492.4 kB / 3.834 GB, free: 155.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/11.45, allocations: 313.9 kB / 3.834 GB, free: 155.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/11.45, allocations: 0 / 3.834 GB, free: 155.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001133/11.45, allocations: 342.1 kB / 3.834 GB, free: 154.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005905/11.45, allocations: 370.3 kB / 3.835 GB, free: 154.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007966/11.45, allocations: 0.5763 MB / 3.835 GB, free: 154.6 MB / 0.698 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.004308/11.45, allocations: 1.299 MB / 3.836 GB, free: 154.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/11.45, allocations: 0 / 3.836 GB, free: 154.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004466/11.46, allocations: 1.543 MB / 3.838 GB, free: 154.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002883/11.46, allocations: 1.253 MB / 3.839 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/11.46, allocations: 3.875 kB / 3.839 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009837/11.46, allocations: 384.2 kB / 3.84 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/11.46, allocations: 153.6 kB / 3.84 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006667/11.47, allocations: 6.171 MB / 3.846 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/11.47, allocations: 89.2 kB / 3.846 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/11.47, allocations: 47.31 kB / 3.846 GB, free: 148.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/11.47, allocations: 3.969 kB / 3.846 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003209/11.47, allocations: 1.348 MB / 3.847 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/11.47, allocations: 3.531 kB / 3.847 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/11.47, allocations: 356.8 kB / 3.848 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/11.47, allocations: 143.2 kB / 3.848 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006887/11.48, allocations: 6.988 MB / 3.854 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/11.48, allocations: 77.75 kB / 3.855 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/11.48, allocations: 33.05 kB / 3.855 GB, free: 143.6 MB / 0.698 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.0005366/11.48, allocations: 171.6 kB / 3.855 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/11.48, allocations: 156.8 kB / 3.855 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004272/11.49, allocations: 1.322 MB / 3.856 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/11.49, allocations: 11.47 kB / 3.856 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/11.49, allocations: 0 / 3.856 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003135/11.49, allocations: 1.203 MB / 3.857 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008293/11.5, allocations: 2.915 MB / 3.86 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/11.5, allocations: 3.562 kB / 3.86 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009697/11.5, allocations: 173.1 kB / 3.86 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004657/11.5, allocations: 152.4 kB / 3.861 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/11.5, allocations: 17.84 kB / 3.861 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004679/11.51, allocations: 3.234 MB / 3.864 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-05/11.51, allocations: 6.625 kB / 3.864 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005387/11.51, allocations: 2.222 MB / 3.866 GB, free: 139.5 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005985/11.52, allocations: 3.33 MB / 3.869 GB, free: 138.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/11.52, allocations: 336 kB / 3.869 GB, free: 138.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/11.52, allocations: 18.11 kB / 3.869 GB, free: 138.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/11.52, allocations: 98.34 kB / 3.87 GB, free: 138.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/11.52, allocations: 59.33 kB / 3.87 GB, free: 138.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.286e-05/11.52, allocations: 41.67 kB / 3.87 GB, free: 138.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.00111/11.52, allocations: 0.6747 MB / 3.87 GB, free: 138.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.006882/11.53, allocations: 1.516 MB / 3.872 GB, free: 138.1 MB / 0.698 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.005072/11.53, allocations: 2.663 MB / 3.874 GB, free: 137.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004535/11.54, allocations: 2.326 MB / 3.877 GB, free: 136.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/11.54, allocations: 3.906 kB / 3.877 GB, free: 136.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/11.54, allocations: 0.732 MB / 3.877 GB, free: 136.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003927/11.54, allocations: 0.6706 MB / 3.878 GB, free: 136.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007798/11.55, allocations: 2.567 MB / 3.881 GB, free: 135.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/11.55, allocations: 1.508 MB / 3.882 GB, free: 134.9 MB / 0.698 GB Notification: Performance of SimCode: time 1.754e-06/11.55, allocations: 1.312 kB / 3.882 GB, free: 134.9 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)