Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.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.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") translateModel(ThermoPower.Test.WaterComponents.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") [: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.00114/0.00114, allocations: 192.2 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.208/1.208, 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.0008938/0.0008938, allocations: 96.34 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.3407/0.3407, allocations: 48.76 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.516e-06/8.536e-06, allocations: 4.156 kB / 424.7 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 60.25 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.755/4.866, allocations: 2.85 GB / 3.324 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/4.867, allocations: 71.95 kB / 3.324 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.233/7.099, allocations: 0.6725 GB / 3.996 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.651e-05/7.099, allocations: 23.03 kB / 3.996 GB, free: 47.57 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.006707/7.106, allocations: 1.77 MB / 3.998 GB, free: 46.83 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/7.106, allocations: 7.312 kB / 3.998 GB, free: 46.83 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005435/7.107, allocations: 128.2 kB / 3.998 GB, free: 46.78 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/7.108, allocations: 0.596 MB / 3.999 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/7.108, allocations: 25.75 kB / 3.999 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/7.108, allocations: 48.25 kB / 3.999 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008422/7.109, allocations: 446 kB / 3.999 GB, free: 46.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/7.11, allocations: 0.7847 MB / 4 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/7.11, allocations: 0 / 4 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/7.11, allocations: 3.781 kB / 4 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/7.11, allocations: 16.22 kB / 4 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/7.114, allocations: 4.691 MB / 4.005 GB, free: 42.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005713/7.115, allocations: 366.1 kB / 4.005 GB, free: 42.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/7.115, allocations: 165.3 kB / 4.005 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05604/7.171, allocations: 32.01 MB / 4.036 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004954/7.172, allocations: 273.2 kB / 4.037 GB, free: 23.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 2.936e-06/7.172, allocations: 3.719 kB / 4.037 GB, free: 23.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.001327/7.173, allocations: 0.5007 MB / 4.037 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/7.173, allocations: 90.39 kB / 4.037 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/7.174, allocations: 365.5 kB / 4.038 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.683e-05/7.174, allocations: 29.67 kB / 4.038 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/7.174, allocations: 312.1 kB / 4.038 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.47e-05/7.174, allocations: 123.7 kB / 4.038 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/7.174, allocations: 3.688 kB / 4.038 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.563e-05/7.174, allocations: 365.9 kB / 4.038 GB, free: 22.31 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/7.174, allocations: 150.4 kB / 4.038 GB, free: 22.31 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/7.175, allocations: 247.5 kB / 4.039 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/7.175, allocations: 149.2 kB / 4.039 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/7.175, allocations: 0 / 4.039 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001187/7.176, allocations: 0.5912 MB / 4.039 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/7.176, allocations: 1.056 MB / 4.04 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/7.176, allocations: 0 / 4.04 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/7.176, allocations: 10.84 kB / 4.04 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007509/7.177, allocations: 175.3 kB / 4.041 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/7.177, allocations: 12.67 kB / 4.041 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008884/7.178, allocations: 175.6 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/7.178, allocations: 18.5 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.252e-06/7.178, allocations: 7.375 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000673/7.179, allocations: 348.8 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-06/7.179, allocations: 4.875 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.362e-06/7.179, allocations: 7.875 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005814/7.179, allocations: 179.5 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/7.179, allocations: 6.375 kB / 4.041 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007258/7.18, allocations: 166.2 kB / 4.042 GB, free: 21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/7.18, allocations: 21.5 kB / 4.042 GB, free: 21 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition2,$whenCondition1,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition4,$whenCondition3,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0001442/7.18, allocations: 133.6 kB / 4.042 GB, free: 20.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004085/7.181, allocations: 178.3 kB / 4.042 GB, free: 20.87 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/7.182, allocations: 1.84 MB / 4.044 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/7.182, allocations: 28.56 kB / 4.044 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/7.182, allocations: 1.969 kB / 4.044 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/7.182, allocations: 6.938 kB / 4.044 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008651/7.183, allocations: 0.9207 MB / 4.045 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/7.183, allocations: 0 / 4.045 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/7.184, allocations: 149.7 kB / 4.045 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/7.184, allocations: 6.625 kB / 4.045 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/7.184, allocations: 7.094 kB / 4.045 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/7.184, allocations: 5.438 kB / 4.045 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/7.184, allocations: 0 / 4.045 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001509/7.186, allocations: 1.452 MB / 4.046 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/7.186, allocations: 199.1 kB / 4.046 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/7.186, allocations: 7.703 kB / 4.046 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007369/7.187, allocations: 148.6 kB / 4.047 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/7.187, allocations: 82.7 kB / 4.047 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/7.187, allocations: 18.55 kB / 4.047 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002279/7.187, allocations: 274.8 kB / 4.047 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004228/7.191, allocations: 1.159 MB / 4.048 GB, free: 19.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,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine2.count,Sine1.count,Sine4.count,Sine3.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 33 * 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.005988/7.197, allocations: 2.185 MB / 4.05 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001445/7.199, allocations: 1.318 MB / 4.051 GB, free: 35.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/7.199, allocations: 2.344 kB / 4.051 GB, free: 35.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006962/7.2, allocations: 0.8329 MB / 4.052 GB, free: 35.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/7.201, allocations: 228.9 kB / 4.052 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/7.203, allocations: 1.513 MB / 4.054 GB, free: 34.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007442/7.204, allocations: 1.101 MB / 4.055 GB, free: 34.26 MB / 0.5417 GB Notification: Performance of SimCode: time 6.51e-07/7.204, allocations: 0 / 4.055 GB, free: 34.26 MB / 0.5417 GB Notification: Performance of Templates: time 0.05541/7.259, allocations: 39.51 MB / 4.094 GB, free: 32.09 MB / 0.5417 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)