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: translateModel(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple") translateModel(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple") [: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.000857/0.000857, allocations: 191 kB / 7.802 MB, free: 2.488 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.012/1.012, allocations: 221.4 MB / 229.6 MB, free: 3.125 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.0008294/0.0008294, allocations: 86.61 kB / 280.5 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.3503/0.3503, allocations: 64.45 MB / 395.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.122e-06/6.472e-06, allocations: 0 / 466.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2379, allocations: 64.86 MB / 0.519 GB, free: 30.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3716/0.6095, allocations: 250.8 MB / 0.7639 GB, free: 37.39 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001527/0.6097, allocations: 58.59 kB / 0.764 GB, free: 37.37 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: Performance of FrontEnd: time 0.5143/1.124, allocations: 165.7 MB / 0.9258 GB, free: 114.2 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001083/1.124, allocations: 75.23 kB / 0.9259 GB, free: 114.2 MB / 0.5573 GB 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.008461/1.133, allocations: 3.413 MB / 0.9292 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/1.133, allocations: 7.75 kB / 0.9292 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009659/1.134, allocations: 381.9 kB / 0.9296 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/1.136, allocations: 1.542 MB / 0.9311 GB, free: 112.2 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/1.136, allocations: 194 kB / 0.9313 GB, free: 112.2 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005477/1.137, allocations: 265 kB / 0.9315 GB, free: 112.2 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005511/1.142, allocations: 3.974 MB / 0.9354 GB, free: 112.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005514/1.148, allocations: 4.686 MB / 0.94 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.705e-05/1.148, allocations: 15.55 kB / 0.94 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/1.148, allocations: 7.906 kB / 0.94 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/1.148, allocations: 263.3 kB / 0.9402 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01633/1.165, allocations: 20.56 MB / 0.9603 GB, free: 98.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/1.167, allocations: 1.775 MB / 0.962 GB, free: 97.12 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/1.168, allocations: 0.8803 MB / 0.9629 GB, free: 96.69 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/1.168, allocations: 35.91 kB / 0.9629 GB, free: 96.69 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/1.168, allocations: 64.19 kB / 0.963 GB, free: 96.63 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 3.636e-06/1.168, allocations: 0 / 0.963 GB, free: 96.63 MB / 0.5573 GB Notification: Performance of matching and sorting (n=214): time 0.01821/1.186, allocations: 10.61 MB / 0.9734 GB, free: 90.65 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/1.186, allocations: 341.9 kB / 0.9737 GB, free: 90.27 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001763/1.188, allocations: 1.733 MB / 0.9754 GB, free: 89.55 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000145/1.188, allocations: 25.7 kB / 0.9754 GB, free: 89.52 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005392/1.189, allocations: 1.818 MB / 0.9772 GB, free: 88.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/1.189, allocations: 0.7382 MB / 0.9779 GB, free: 87.53 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/1.19, allocations: 0 / 0.9779 GB, free: 87.53 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001831/1.19, allocations: 0.5177 MB / 0.9784 GB, free: 87.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/1.192, allocations: 1.424 MB / 0.9798 GB, free: 86.55 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002253/1.194, allocations: 3.249 MB / 0.983 GB, free: 83.54 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002341/1.196, allocations: 2.094 MB / 0.985 GB, free: 82.73 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/1.196, allocations: 20.94 kB / 0.985 GB, free: 82.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.009033/1.205, allocations: 5.293 MB / 0.9902 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/1.205, allocations: 4.469 kB / 0.9902 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.131e-05/1.205, allocations: 67.98 kB / 0.9903 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004972/1.21, allocations: 1.227 MB / 0.9915 GB, free: 80.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004656/1.215, allocations: 1.027 MB / 0.9925 GB, free: 80.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007363/1.222, allocations: 8.475 MB / 1.001 GB, free: 73.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/1.226, allocations: 199.7 kB / 1.001 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/1.226, allocations: 229.7 kB / 1.001 GB, free: 73.46 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.0004822/1.227, allocations: 282.9 kB / 1.001 GB, free: 73.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004725/1.227, allocations: 221.9 kB / 1.002 GB, free: 73.11 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007556/1.235, allocations: 3.448 MB / 1.005 GB, free: 71.81 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.173e-05/1.235, allocations: 32.22 kB / 1.005 GB, free: 71.81 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/1.235, allocations: 5.812 kB / 1.005 GB, free: 71.81 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/1.235, allocations: 15.77 kB / 1.005 GB, free: 71.81 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/1.247, allocations: 7.262 MB / 1.012 GB, free: 68.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/1.247, allocations: 7.906 kB / 1.012 GB, free: 68.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002855/1.25, allocations: 411.1 kB / 1.013 GB, free: 68.72 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005503/1.256, allocations: 1.359 MB / 1.014 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/1.256, allocations: 17.28 kB / 1.014 GB, free: 68.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007959/1.264, allocations: 9.31 MB / 1.023 GB, free: 60.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003032/1.267, allocations: 3.643 MB / 1.027 GB, free: 57.46 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00928/1.276, allocations: 5.758 MB / 1.032 GB, free: 53.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005847/1.277, allocations: 310.2 kB / 1.032 GB, free: 52.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003624/1.277, allocations: 7.656 kB / 1.032 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002078/1.279, allocations: 98.47 kB / 1.033 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/1.28, allocations: 141.2 kB / 1.033 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/1.28, allocations: 67.88 kB / 1.033 GB, free: 52.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001293/1.281, allocations: 1.163 MB / 1.034 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00447/1.285, allocations: 1.162 MB / 1.035 GB, free: 50.52 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 ($STATESET139716701763992.x,$STATESET139716701763991.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.001765/1.287, allocations: 0.6886 MB / 1.036 GB, free: 49.93 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007186/1.294, allocations: 3.697 MB / 1.039 GB, free: 46.49 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.294, allocations: 0 / 1.039 GB, free: 46.49 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004927/1.299, allocations: 1.713 MB / 1.041 GB, free: 44.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/1.301, allocations: 373.1 kB / 1.041 GB, free: 44.61 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/1.312, allocations: 5.087 MB / 1.046 GB, free: 40.06 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/1.314, allocations: 2.421 MB / 1.049 GB, free: 38.15 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/1.314, allocations: 1.312 kB / 1.049 GB, free: 38.15 MB / 0.5573 GB Notification: Performance of Templates: time 0.2064/1.521, allocations: 54.23 MB / 1.102 GB, free: 147.5 MB / 0.5573 GB make -j1 -f ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.makefile (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 & ./ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe 2>&1)