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") [: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.001031/0.001031, allocations: 192.6 kB / 8.136 MB, free: 2.199 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.132/1.132, 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.0008233/0.0008235, allocations: 100.7 kB / 261.8 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3434/0.3434, allocations: 48.76 MB / 358.4 MB, free: 53.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.435e-06/8.706e-06, allocations: 0 / 424.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 60.25 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.611/4.72, allocations: 2.85 GB / 3.324 GB, free: 16.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/4.72, allocations: 83.61 kB / 3.324 GB, free: 16.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.281/7.001, allocations: 0.6403 GB / 3.964 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.944e-05/7.001, allocations: 24.38 kB / 3.964 GB, free: 48.89 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.007257/7.008, allocations: 1.743 MB / 3.966 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/7.008, allocations: 12.69 kB / 3.966 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006179/7.009, allocations: 124.2 kB / 3.966 GB, free: 48.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/7.011, allocations: 0.5977 MB / 3.966 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/7.011, allocations: 22.66 kB / 3.967 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/7.011, allocations: 44.75 kB / 3.967 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009802/7.012, allocations: 445.2 kB / 3.967 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/7.013, allocations: 0.754 MB / 3.968 GB, free: 47.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/7.013, allocations: 5.625 kB / 3.968 GB, free: 47.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.642e-05/7.013, allocations: 3.812 kB / 3.968 GB, free: 47.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/7.013, allocations: 21.22 kB / 3.968 GB, free: 47.66 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00416/7.017, allocations: 4.457 MB / 3.972 GB, free: 44.31 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/7.018, allocations: 374.3 kB / 3.972 GB, free: 44.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/7.018, allocations: 174.6 kB / 3.973 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05934/7.077, allocations: 32.02 MB / 4.004 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006963/7.078, allocations: 287.5 kB / 4.004 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.775e-06/7.078, allocations: 5.469 kB / 4.004 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.001547/7.08, allocations: 0.5144 MB / 4.005 GB, free: 24.72 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/7.08, allocations: 90.8 kB / 4.005 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/7.08, allocations: 354.4 kB / 4.005 GB, free: 24.51 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.061e-05/7.08, allocations: 29.36 kB / 4.005 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/7.081, allocations: 297.7 kB / 4.005 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/7.081, allocations: 129.7 kB / 4.006 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/7.081, allocations: 0 / 4.006 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.82e-05/7.081, allocations: 372.3 kB / 4.006 GB, free: 23.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/7.081, allocations: 159.2 kB / 4.006 GB, free: 23.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/7.081, allocations: 220.4 kB / 4.006 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/7.082, allocations: 156.2 kB / 4.006 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/7.082, allocations: 0 / 4.006 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001314/7.083, allocations: 0.6033 MB / 4.007 GB, free: 23.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/7.083, allocations: 0.7045 MB / 4.008 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/7.083, allocations: 0 / 4.008 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/7.083, allocations: 3.719 kB / 4.008 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007426/7.084, allocations: 178 kB / 4.008 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/7.084, allocations: 3.688 kB / 4.008 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000985/7.085, allocations: 166.8 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.343e-05/7.085, allocations: 21.7 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/7.085, allocations: 6.719 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007496/7.086, allocations: 351.3 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/7.086, allocations: 2.562 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.802e-06/7.086, allocations: 3.469 kB / 4.008 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/7.087, allocations: 171.8 kB / 4.009 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/7.087, allocations: 8.766 kB / 4.009 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008775/7.088, allocations: 168.8 kB / 4.009 GB, free: 23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/7.088, allocations: 24.59 kB / 4.009 GB, free: 23 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 () * 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.0001549/7.088, allocations: 123.6 kB / 4.009 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004594/7.088, allocations: 178.9 kB / 4.009 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/7.09, allocations: 1.861 MB / 4.011 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/7.09, allocations: 26.25 kB / 4.011 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/7.09, allocations: 3.5 kB / 4.011 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/7.09, allocations: 3.281 kB / 4.011 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/7.091, allocations: 0.9277 MB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/7.091, allocations: 0 / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006328/7.092, allocations: 152.5 kB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/7.092, allocations: 3.5 kB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/7.092, allocations: 6.562 kB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/7.092, allocations: 3.375 kB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/7.092, allocations: 7.234 kB / 4.012 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001763/7.094, allocations: 1.464 MB / 4.013 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/7.094, allocations: 198.4 kB / 4.014 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/7.094, allocations: 10.22 kB / 4.014 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008331/7.095, allocations: 155.2 kB / 4.014 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/7.095, allocations: 74.55 kB / 4.014 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.034e-05/7.095, allocations: 18.39 kB / 4.014 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002438/7.096, allocations: 267.9 kB / 4.014 GB, free: 22.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005486/7.101, allocations: 1.154 MB / 4.015 GB, free: 21.86 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) * 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.009143/7.11, allocations: 2.132 MB / 4.017 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001782/7.112, allocations: 1.324 MB / 4.019 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/7.112, allocations: 0.9375 kB / 4.019 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009215/7.113, allocations: 0.8464 MB / 4.019 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/7.114, allocations: 225.9 kB / 4.02 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/7.118, allocations: 1.545 MB / 4.021 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007734/7.119, allocations: 1.097 MB / 4.022 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/7.119, allocations: 0 / 4.022 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of Templates: time 0.06638/7.185, allocations: 39.54 MB / 4.061 GB, free: 18.5 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)