Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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) Running command: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",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 3.2.3+maint.om/package.mo): time 0.001273/0.001273, allocations: 182.4 kB / 8.137 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.991/0.991, allocations: 205.2 MB / 213.7 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 94.31 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2698/0.2698, allocations: 48.76 MB / 358.4 MB, free: 53.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08488/0.3547, allocations: 66.37 MB / 424.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.4392, allocations: 60.25 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.817/4.256, allocations: 2.937 GB / 3.411 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001686/4.257, allocations: 78.69 kB / 3.411 GB, free: 106 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.7097/4.966, allocations: 306.3 MB / 3.71 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/4.966, allocations: 8 kB / 3.71 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00192/4.968, allocations: 373.4 kB / 3.71 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003407/4.972, allocations: 1.338 MB / 3.712 GB, free: 9.473 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/4.972, allocations: 68 kB / 3.712 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004463/4.972, allocations: 112 kB / 3.712 GB, free: 9.297 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006318/4.979, allocations: 3.766 MB / 3.715 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003895/4.983, allocations: 3.137 MB / 3.719 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/4.983, allocations: 3.938 kB / 3.719 GB, free: 2.336 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/4.983, allocations: 4 kB / 3.719 GB, free: 2.332 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.714e-05/4.983, allocations: 79.81 kB / 3.719 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1393/5.122, allocations: 9.22 MB / 3.728 GB, free: 99.77 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/5.124, allocations: 1.48 MB / 3.729 GB, free: 99.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009923/5.125, allocations: 0.958 MB / 3.73 GB, free: 99.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1061/5.231, allocations: 64.04 MB / 3.793 GB, free: 59.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00204/5.233, allocations: 1.198 MB / 3.794 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=137): time 3.256e-06/5.233, allocations: 0 / 3.794 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137): time 0.01231/5.245, allocations: 4.005 MB / 3.798 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/5.246, allocations: 252.7 kB / 3.798 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/5.247, allocations: 1.08 MB / 3.799 GB, free: 59.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002022/5.247, allocations: 26.27 kB / 3.799 GB, free: 59.06 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/5.247, allocations: 0.9568 MB / 3.8 GB, free: 58.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003664/5.248, allocations: 0.4919 MB / 3.8 GB, free: 58.31 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/5.248, allocations: 0 / 3.8 GB, free: 58.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001251/5.248, allocations: 464.8 kB / 3.801 GB, free: 57.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/5.249, allocations: 1.083 MB / 3.802 GB, free: 57.98 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/5.251, allocations: 2.377 MB / 3.804 GB, free: 56.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/5.253, allocations: 1.581 MB / 3.806 GB, free: 56.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/5.253, allocations: 14 kB / 3.806 GB, free: 56.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.01308/5.266, allocations: 5.437 MB / 3.811 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002171/5.268, allocations: 17.03 MB / 3.828 GB, free: 38.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-05/5.268, allocations: 49.66 kB / 3.828 GB, free: 38.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/5.279, allocations: 2.4 MB / 3.83 GB, free: 38.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/5.281, allocations: 0.5465 MB / 3.831 GB, free: 38.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/5.298, allocations: 11.56 MB / 3.842 GB, free: 36.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/5.3, allocations: 337.3 kB / 3.842 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/5.301, allocations: 155.1 kB / 3.842 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/5.301, allocations: 4.156 kB / 3.842 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0116/5.312, allocations: 4.816 MB / 3.847 GB, free: 36.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.119e-05/5.312, allocations: 44.53 kB / 3.847 GB, free: 36.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009821/5.322, allocations: 2.413 MB / 3.849 GB, free: 36.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/5.324, allocations: 0.5313 MB / 3.85 GB, free: 36.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/5.341, allocations: 11.56 MB / 3.861 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/5.343, allocations: 251.9 kB / 3.862 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002495/5.344, allocations: 153.2 kB / 3.862 GB, free: 34.55 MB / 0.5105 GB Warning: Assuming fixed start value for the following 6 variables: hex.h[6]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = hex.hstart[6] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[5]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[5] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[4]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[4] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[3]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[3] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[2]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[2] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[1]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 196 * Number of states: 0 () * Number of discrete variables: 15 (hex.fluidState[6].phase,hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,$PRE.MassFlowRate.nextEvent,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 291 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 49} Notification: Performance of prepare postOptimizeDAE: time 0.0006944/5.344, allocations: 364 kB / 3.862 GB, free: 34.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/5.345, allocations: 489.1 kB / 3.862 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/5.358, allocations: 6.669 MB / 3.869 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-05/5.358, allocations: 38.62 kB / 3.869 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/5.358, allocations: 0 / 3.869 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/5.358, allocations: 7.453 kB / 3.869 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/5.373, allocations: 8.671 MB / 3.878 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/5.373, allocations: 3.375 kB / 3.878 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006386/5.374, allocations: 149.1 kB / 3.878 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01113/5.385, allocations: 2.637 MB / 3.88 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/5.385, allocations: 47.2 kB / 3.88 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01757/5.403, allocations: 11.68 MB / 3.892 GB, free: 30.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/5.403, allocations: 3.375 kB / 3.892 GB, free: 30.4 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0162/5.419, allocations: 7.57 MB / 3.899 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01696/5.436, allocations: 9.797 MB / 3.909 GB, free: 19.59 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.1261/5.562, allocations: 464.8 kB / 3.909 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003188/5.562, allocations: 23.98 kB / 3.909 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/5.563, allocations: 83.38 kB / 3.909 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/5.564, allocations: 89.5 kB / 3.909 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/5.564, allocations: 53.47 kB / 3.909 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0007137/5.565, allocations: 0.721 MB / 3.91 GB, free: 97.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008061/5.573, allocations: 2.016 MB / 3.912 GB, free: 97.61 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (hex.h[1],hex.h[2],hex.h[3],hex.h[4],hex.h[5],hex.h[6]) * Number of discrete variables: 22 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled) * Number of discrete states: 6 (MassFlowRate.nextEvent,MassFlowRate.last,MassFlowRate.nextEventScaled,MassFlowRate.b,MassFlowRate.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 54} Notification: Performance of Backend phase and start with SimCode phase: time 0.004605/5.577, allocations: 1.533 MB / 3.913 GB, free: 97.51 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008471/5.586, allocations: 6.073 MB / 3.919 GB, free: 97.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/5.586, allocations: 3.781 kB / 3.919 GB, free: 97.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003182/5.589, allocations: 2.636 MB / 3.922 GB, free: 97.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/5.59, allocations: 313.9 kB / 3.922 GB, free: 97.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006495/5.597, allocations: 4.786 MB / 3.927 GB, free: 96.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/5.598, allocations: 1.763 MB / 3.929 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of SimCode: time 4.6e-07/5.598, allocations: 3.062 kB / 3.929 GB, free: 95.64 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe 2>&1)