Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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: translateModel(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") translateModel(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") [: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.001039/0.001039, allocations: 191.5 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.001028/0.001028, allocations: 98.23 kB / 261.7 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.4554/0.4554, allocations: 48.76 MB / 358.4 MB, free: 53.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.066e-05/1.095e-05, allocations: 4 kB / 424.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1438, allocations: 60.25 MB / 485 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.083/5.227, allocations: 2.865 GB / 3.339 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/5.227, allocations: 76.06 kB / 3.339 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.247/6.474, allocations: 428.8 MB / 3.758 GB, free: 56.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.349e-05/6.474, allocations: 26.83 kB / 3.758 GB, free: 56.16 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.007186/6.482, allocations: 1.672 MB / 3.759 GB, free: 55.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/6.482, allocations: 11.53 kB / 3.759 GB, free: 55.65 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000558/6.482, allocations: 129.8 kB / 3.759 GB, free: 55.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/6.483, allocations: 0.625 MB / 3.76 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/6.483, allocations: 20.75 kB / 3.76 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.553e-05/6.483, allocations: 28.97 kB / 3.76 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001036/6.484, allocations: 0.7462 MB / 3.761 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006762/6.485, allocations: 0.5978 MB / 3.761 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/6.485, allocations: 2.062 kB / 3.761 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/6.485, allocations: 5.312 kB / 3.761 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/6.485, allocations: 11.34 kB / 3.761 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/6.488, allocations: 3.114 MB / 3.764 GB, free: 52.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/6.488, allocations: 284.7 kB / 3.765 GB, free: 52.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/6.488, allocations: 163.4 kB / 3.765 GB, free: 52.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05685/6.545, allocations: 32 MB / 3.796 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/6.545, allocations: 36.53 kB / 3.796 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=31): time 3.196e-06/6.545, allocations: 7.219 kB / 3.796 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31): time 0.003281/6.549, allocations: 0.7433 MB / 3.797 GB, free: 33.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/6.549, allocations: 58.03 kB / 3.797 GB, free: 33.37 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005363/6.549, allocations: 395.9 kB / 3.797 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/6.549, allocations: 25.7 kB / 3.797 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/6.549, allocations: 258.2 kB / 3.797 GB, free: 33.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.833e-05/6.55, allocations: 103.4 kB / 3.798 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/6.55, allocations: 0 / 3.798 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.756e-05/6.55, allocations: 370.6 kB / 3.798 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/6.55, allocations: 121 kB / 3.798 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/6.55, allocations: 165.6 kB / 3.798 GB, free: 32.66 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005637/6.551, allocations: 165.2 kB / 3.798 GB, free: 32.65 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/6.551, allocations: 3.312 kB / 3.798 GB, free: 32.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003642/6.554, allocations: 0.9002 MB / 3.799 GB, free: 32.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/6.554, allocations: 0.5242 MB / 3.8 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/6.554, allocations: 3.906 kB / 3.8 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006496/6.561, allocations: 1.001 MB / 3.801 GB, free: 31.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/6.561, allocations: 62.08 kB / 3.801 GB, free: 31.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/6.563, allocations: 1.105 MB / 3.802 GB, free: 31.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/6.564, allocations: 61 kB / 3.802 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/6.564, allocations: 20.77 kB / 3.802 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/6.564, allocations: 2.406 kB / 3.802 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009092/6.565, allocations: 375 kB / 3.802 GB, free: 31.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/6.565, allocations: 0 / 3.802 GB, free: 31.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/6.565, allocations: 78 kB / 3.802 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/6.566, allocations: 96.98 kB / 3.802 GB, free: 31.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/6.567, allocations: 1.617 MB / 3.804 GB, free: 30.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006055/6.568, allocations: 56.7 kB / 3.804 GB, free: 30.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/6.568, allocations: 22.62 kB / 3.804 GB, free: 30.08 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: SourceP2.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real SourceP1.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 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 17} Notification: Performance of prepare postOptimizeDAE: time 0.000172/6.568, allocations: 121.1 kB / 3.804 GB, free: 29.97 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004326/6.568, allocations: 164.1 kB / 3.804 GB, free: 29.94 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/6.571, allocations: 2.271 MB / 3.807 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/6.571, allocations: 19.81 kB / 3.807 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/6.571, allocations: 2.906 kB / 3.807 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/6.571, allocations: 3.75 kB / 3.807 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009194/6.572, allocations: 0.8556 MB / 3.808 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/6.572, allocations: 3.906 kB / 3.808 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/6.573, allocations: 51 kB / 3.808 GB, free: 29.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004354/6.577, allocations: 2.726 MB / 3.81 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/6.577, allocations: 11.09 kB / 3.81 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/6.579, allocations: 2.158 MB / 3.812 GB, free: 28.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/6.579, allocations: 3.906 kB / 3.812 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00212/6.581, allocations: 1.706 MB / 3.814 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/6.582, allocations: 153 kB / 3.814 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/6.582, allocations: 3.562 kB / 3.814 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/6.582, allocations: 47.53 kB / 3.814 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/6.582, allocations: 39.86 kB / 3.814 GB, free: 28.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/6.582, allocations: 18.33 kB / 3.814 GB, free: 28.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002764/6.583, allocations: 298.8 kB / 3.815 GB, free: 28.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004081/6.587, allocations: 1.13 MB / 3.816 GB, free: 28.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.007182/6.594, allocations: 1.772 MB / 3.817 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002333/6.596, allocations: 1.079 MB / 3.818 GB, free: 27.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/6.596, allocations: 3.938 kB / 3.818 GB, free: 27.68 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001096/6.597, allocations: 0.7608 MB / 3.819 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/6.599, allocations: 272 kB / 3.819 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/6.601, allocations: 1.337 MB / 3.821 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004936/6.602, allocations: 1.051 MB / 3.822 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of SimCode: time 4.61e-07/6.602, allocations: 0 / 3.822 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of Templates: time 0.05278/6.655, allocations: 38.12 MB / 3.859 GB, free: 24.27 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)