Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo", uses=false) Using package ThermalSeparation with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/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) 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) Running command: "" <> buildModelFMU(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple",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/Complex 4.0.0+maint.om/package.mo): time 0.0009045/0.0009045, allocations: 190.8 kB / 7.802 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.014/1.014, allocations: 221.4 MB / 229.6 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008148/0.0008148, allocations: 97.97 kB / 280.4 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.3477/0.3477, allocations: 64.47 MB / 395.7 MB, free: 27.33 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09538/0.4431, allocations: 70.99 MB / 466.7 MB, free: 6.055 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.6624, allocations: 64.84 MB / 0.5191 GB, free: 30.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3651/1.028, allocations: 250.8 MB / 0.764 GB, free: 37.36 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001398/1.028, allocations: 55.61 kB / 0.7641 GB, free: 37.34 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/Media/WaterBasedLiquid/BaseClasses/package.mo:6:3-23:32:writable] Error: PartialWaterBased is partial, name lookup is not allowed in partial classes. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1064 * Number of variables: 1064 Notification: Performance of Generate backend data structure: time 0.5195/1.547, allocations: 169.2 MB / 0.9293 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 2.876e-05/1.547, allocations: 7.688 kB / 0.9293 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009769/1.548, allocations: 389.7 kB / 0.9297 GB, free: 113 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002811/1.551, allocations: 1.537 MB / 0.9312 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/1.551, allocations: 199.3 kB / 0.9314 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007635/1.552, allocations: 261.5 kB / 0.9316 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005975/1.558, allocations: 3.974 MB / 0.9355 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005666/1.564, allocations: 4.686 MB / 0.9401 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.66e-05/1.564, allocations: 15.69 kB / 0.9401 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002899/1.564, allocations: 11.31 kB / 0.9401 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/1.564, allocations: 254.2 kB / 0.9403 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01654/1.581, allocations: 20.55 MB / 0.9604 GB, free: 98.25 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/1.583, allocations: 1.78 MB / 0.9621 GB, free: 97.32 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/1.584, allocations: 0.8821 MB / 0.963 GB, free: 96.89 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/1.584, allocations: 29.02 kB / 0.963 GB, free: 96.89 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/1.584, allocations: 68.28 kB / 0.9631 GB, free: 96.82 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 3.286e-06/1.584, allocations: 0 / 0.9631 GB, free: 96.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=214): time 0.01818/1.602, allocations: 10.62 MB / 0.9735 GB, free: 90.85 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/1.603, allocations: 342.7 kB / 0.9738 GB, free: 90.46 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/1.604, allocations: 1.732 MB / 0.9755 GB, free: 89.74 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001211/1.604, allocations: 25.7 kB / 0.9755 GB, free: 89.71 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005359/1.605, allocations: 1.812 MB / 0.9773 GB, free: 88.3 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/1.605, allocations: 0.7389 MB / 0.978 GB, free: 87.73 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/1.606, allocations: 0 / 0.978 GB, free: 87.73 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001833/1.606, allocations: 0.5246 MB / 0.9785 GB, free: 87.32 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/1.608, allocations: 1.418 MB / 0.9799 GB, free: 86.75 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/1.61, allocations: 3.251 MB / 0.9831 GB, free: 83.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/1.613, allocations: 2.099 MB / 0.9851 GB, free: 82.93 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.032e-05/1.613, allocations: 19.03 kB / 0.9851 GB, free: 82.93 MB / 0.5573 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.01005/1.623, allocations: 5.298 MB / 0.9903 GB, free: 81.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/1.623, allocations: 10.91 kB / 0.9903 GB, free: 81.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.075e-05/1.623, allocations: 62.41 kB / 0.9904 GB, free: 81.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005093/1.628, allocations: 1.218 MB / 0.9916 GB, free: 80.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004958/1.633, allocations: 1.021 MB / 0.9926 GB, free: 80.69 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007635/1.64, allocations: 8.485 MB / 1.001 GB, free: 73.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003864/1.644, allocations: 199.8 kB / 1.001 GB, free: 73.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005413/1.645, allocations: 223.6 kB / 1.001 GB, free: 73.67 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 288 * Number of states: 0 () * Number of discrete variables: 10 (sourceLiquid2.medium.state.phase,sourceLiquid1.medium.state.phase,ccounterFlowHeatExchanger.mediumHotOut.state.phase,ccounterFlowHeatExchanger.mediumColdOut.state.phase,ccounterFlowHeatExchanger.mediumHotIn.state.phase,ccounterFlowHeatExchanger.mediumColdIn.state.phase,ccounterFlowHeatExchanger.coldLiquidTube.mediumLiquidIn.state.phase,ccounterFlowHeatExchanger.coldLiquidTube.mediumLiquid.state.phase,ccounterFlowHeatExchanger.hotLiquidTube.mediumLiquidIn.state.phase,ccounterFlowHeatExchanger.hotLiquidTube.mediumLiquid.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,62.5%) 6,(4,62.5%) 6} * Non-linear torn systems: 6 {1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005807/1.646, allocations: 284.2 kB / 1.002 GB, free: 73.43 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005522/1.646, allocations: 221.5 kB / 1.002 GB, free: 73.32 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007793/1.654, allocations: 3.45 MB / 1.005 GB, free: 72.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/1.654, allocations: 33.41 kB / 1.005 GB, free: 72.02 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/1.654, allocations: 8.188 kB / 1.005 GB, free: 72.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/1.654, allocations: 13.17 kB / 1.005 GB, free: 72.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/1.668, allocations: 7.253 MB / 1.012 GB, free: 68.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.668, allocations: 6.625 kB / 1.012 GB, free: 68.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.671, allocations: 420.9 kB / 1.013 GB, free: 68.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005609/1.676, allocations: 1.356 MB / 1.014 GB, free: 68.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002003/1.676, allocations: 17.86 kB / 1.014 GB, free: 68.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008588/1.685, allocations: 9.308 MB / 1.023 GB, free: 60.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003264/1.688, allocations: 3.65 MB / 1.027 GB, free: 57.66 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01016/1.698, allocations: 5.757 MB / 1.032 GB, free: 53.35 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01058/1.709, allocations: 7.576 MB / 1.04 GB, free: 46.19 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006295/1.71, allocations: 307.9 kB / 1.04 GB, free: 45.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004974/1.71, allocations: 11.52 kB / 1.04 GB, free: 45.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/1.713, allocations: 100 kB / 1.04 GB, free: 45.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/1.713, allocations: 130.5 kB / 1.04 GB, free: 45.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/1.713, allocations: 67.7 kB / 1.04 GB, free: 45.67 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001539/1.715, allocations: 1.164 MB / 1.041 GB, free: 44.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005651/1.72, allocations: 1.197 MB / 1.043 GB, free: 43.45 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 ($STATESET139851519519128.x,$STATESET139851519519127.x,ccounterFlowHeatExchanger.TwallHot,ccounterFlowHeatExchanger.TwallCold) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,62.5%) 4,(4,62.5%) 4} * Non-linear torn systems: 8 {1 3,4 2,1 3,4 2,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002448/1.723, allocations: 0.6952 MB / 1.043 GB, free: 42.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007382/1.73, allocations: 3.7 MB / 1.047 GB, free: 39.41 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.73, allocations: 0 / 1.047 GB, free: 39.41 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005043/1.735, allocations: 1.71 MB / 1.049 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/1.737, allocations: 378.3 kB / 1.049 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.748, allocations: 5.084 MB / 1.054 GB, free: 33 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002552/1.751, allocations: 2.429 MB / 1.056 GB, free: 31.07 MB / 0.5573 GB Notification: Performance of SimCode: time 5.01e-07/1.751, allocations: 0 / 1.056 GB, free: 31.07 MB / 0.5573 GB (rm -f ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe ; mkfifo ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe ; head -c 1048576 < ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe >> ../files/ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple.fmu > ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe 2>&1)