Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.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.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00118/0.001179, allocations: 175.8 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.878/1.878, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0009179/0.0009177, allocations: 86.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5552/0.5552, allocations: 48.78 MB / 369 MB, free: 47.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004419/0.0004422, allocations: 12 kB / 439.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1617, allocations: 60.26 MB / 0.4884 GB, free: 14.31 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.982/7.144, allocations: 2.851 GB / 3.34 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/7.145, allocations: 80.25 kB / 3.34 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.27/9.415, allocations: 0.646 GB / 3.986 GB, free: 50.08 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.943e-06/9.415, allocations: 0 / 3.986 GB, free: 50.08 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.869e-05/9.415, allocations: 26.69 kB / 3.986 GB, free: 50.08 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.007128/9.422, allocations: 1.789 MB / 3.987 GB, free: 49.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/9.422, allocations: 7.906 kB / 3.987 GB, free: 49.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006324/9.423, allocations: 124.9 kB / 3.988 GB, free: 49.17 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/9.425, allocations: 0.6148 MB / 3.988 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.751e-05/9.425, allocations: 52.69 kB / 3.988 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/9.425, allocations: 65.72 kB / 3.988 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/9.427, allocations: 1.111 MB / 3.989 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/9.427, allocations: 7.828 kB / 3.989 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.321e-05/9.427, allocations: 35.25 kB / 3.989 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/9.427, allocations: 15.28 kB / 3.989 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/9.43, allocations: 0.8828 MB / 3.99 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00416/9.434, allocations: 4.425 MB / 3.995 GB, free: 45.32 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/9.436, allocations: 0.8306 MB / 3.995 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007935/9.437, allocations: 342 kB / 3.996 GB, free: 45.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05263/9.489, allocations: 31.86 MB / 4.027 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001762/9.491, allocations: 0.57 MB / 4.027 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 3.577e-06/9.491, allocations: 0 / 4.027 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.003711/9.495, allocations: 1.223 MB / 4.029 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/9.495, allocations: 89.39 kB / 4.029 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007427/9.496, allocations: 0.5381 MB / 4.029 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.876e-05/9.496, allocations: 37.05 kB / 4.029 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/9.496, allocations: 365.3 kB / 4.03 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000136/9.496, allocations: 137.4 kB / 4.03 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/9.496, allocations: 10.84 kB / 4.03 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000126/9.496, allocations: 375.8 kB / 4.03 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008532/9.497, allocations: 320 kB / 4.03 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000859/9.498, allocations: 387.2 kB / 4.031 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/9.5, allocations: 0.7639 MB / 4.032 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/9.5, allocations: 0 / 4.032 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002144/9.502, allocations: 0.9353 MB / 4.032 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/9.502, allocations: 256.1 kB / 4.033 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/9.502, allocations: 0 / 4.033 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/9.502, allocations: 7.594 kB / 4.033 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006896/9.503, allocations: 163.8 kB / 4.033 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/9.503, allocations: 4.969 kB / 4.033 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/9.504, allocations: 177.6 kB / 4.033 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/9.504, allocations: 20.78 kB / 4.033 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/9.504, allocations: 3.906 kB / 4.033 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/9.506, allocations: 0.8375 MB / 4.034 GB, free: 23.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/9.506, allocations: 4.25 kB / 4.034 GB, free: 23.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/9.506, allocations: 7.406 kB / 4.034 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/9.506, allocations: 162 kB / 4.034 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.577e-06/9.506, allocations: 6.375 kB / 4.034 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008683/9.507, allocations: 158 kB / 4.034 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.607e-05/9.507, allocations: 28.19 kB / 4.034 GB, free: 23.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition4,$whenCondition3,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition2,$whenCondition1,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004031/9.508, allocations: 269.7 kB / 4.034 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/9.508, allocations: 72.84 kB / 4.035 GB, free: 23.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/9.511, allocations: 1.938 MB / 4.036 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/9.511, allocations: 26.64 kB / 4.036 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/9.511, allocations: 3.812 kB / 4.036 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/9.511, allocations: 3.75 kB / 4.036 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/9.512, allocations: 1.039 MB / 4.037 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/9.512, allocations: 0 / 4.037 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/9.512, allocations: 132.6 kB / 4.038 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/9.512, allocations: 6.938 kB / 4.038 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/9.512, allocations: 11 kB / 4.038 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/9.512, allocations: 9.016 kB / 4.038 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/9.512, allocations: 0 / 4.038 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/9.515, allocations: 1.207 MB / 4.039 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003744/9.515, allocations: 214.3 kB / 4.039 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/9.515, allocations: 18.84 kB / 4.039 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007739/9.516, allocations: 144.8 kB / 4.039 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/9.516, allocations: 78.16 kB / 4.039 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/9.516, allocations: 17.58 kB / 4.039 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003788/9.517, allocations: 374.6 kB / 4.04 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.2e-07/9.517, allocations: 0 / 4.04 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00533/9.522, allocations: 1.188 MB / 4.041 GB, free: 22.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine1.count,Sine2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008253/9.53, allocations: 1.78 MB / 4.043 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003137/9.533, allocations: 1.691 MB / 4.044 GB, free: 21.65 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/9.533, allocations: 0 / 4.044 GB, free: 21.65 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001123/9.534, allocations: 0.6109 MB / 4.045 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/9.536, allocations: 331.5 kB / 4.045 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/9.539, allocations: 2.041 MB / 4.047 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/9.54, allocations: 1.014 MB / 4.048 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008189/9.541, allocations: 408.4 kB / 4.048 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/9.541, allocations: 56.59 kB / 4.049 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.082e-06/9.541, allocations: 0 / 4.049 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of Templates: time 0.1845/9.725, allocations: 46.08 MB / 4.094 GB, free: 4.449 MB / 0.5261 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)