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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001413/0.001413, allocations: 179.7 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.902/1.902, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0008912/0.0008913, allocations: 89.3 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.5524/0.5524, allocations: 48.78 MB / 369 MB, free: 47.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003971, allocations: 12 kB / 439.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1575, allocations: 60.25 MB / 0.4884 GB, free: 14.32 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.324/6.482, allocations: 2.851 GB / 3.34 GB, free: 157.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/6.482, allocations: 82.36 kB / 3.34 GB, free: 157.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.733/9.216, allocations: 0.6784 GB / 4.018 GB, free: 48.93 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.737e-06/9.216, allocations: 0 / 4.018 GB, free: 48.93 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001119/9.216, allocations: 28.52 kB / 4.018 GB, free: 48.92 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.009906/9.226, allocations: 1.793 MB / 4.02 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/9.226, allocations: 10.53 kB / 4.02 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/9.227, allocations: 134.3 kB / 4.02 GB, free: 47.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/9.229, allocations: 0.6094 MB / 4.021 GB, free: 47.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/9.229, allocations: 56.75 kB / 4.021 GB, free: 47.62 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/9.23, allocations: 72.34 kB / 4.021 GB, free: 47.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003352/9.233, allocations: 1.148 MB / 4.022 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/9.233, allocations: 3.25 kB / 4.022 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/9.233, allocations: 36.88 kB / 4.022 GB, free: 47.26 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/9.233, allocations: 16.97 kB / 4.022 GB, free: 47.26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/9.236, allocations: 0.8921 MB / 4.023 GB, free: 47.24 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006718/9.243, allocations: 4.724 MB / 4.027 GB, free: 43.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/9.245, allocations: 0.8151 MB / 4.028 GB, free: 43.74 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008426/9.246, allocations: 342 kB / 4.029 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06124/9.307, allocations: 31.86 MB / 4.06 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002136/9.31, allocations: 0.5556 MB / 4.06 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 4.959e-06/9.31, allocations: 4 kB / 4.06 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.004287/9.314, allocations: 1.204 MB / 4.061 GB, free: 23.25 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/9.314, allocations: 86.98 kB / 4.061 GB, free: 23.16 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/9.315, allocations: 0.5634 MB / 4.062 GB, free: 22.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000127/9.315, allocations: 40.02 kB / 4.062 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004752/9.316, allocations: 375.9 kB / 4.062 GB, free: 22.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/9.316, allocations: 129.7 kB / 4.063 GB, free: 22.47 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/9.316, allocations: 14.59 kB / 4.063 GB, free: 22.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002179/9.316, allocations: 373.5 kB / 4.063 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/9.317, allocations: 316.6 kB / 4.063 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/9.318, allocations: 412.8 kB / 4.064 GB, free: 21.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/9.32, allocations: 0.7704 MB / 4.064 GB, free: 21.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/9.32, allocations: 3.125 kB / 4.064 GB, free: 21.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002647/9.323, allocations: 0.9524 MB / 4.065 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000267/9.323, allocations: 287.2 kB / 4.066 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/9.323, allocations: 3.531 kB / 4.066 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.819e-05/9.323, allocations: 7.156 kB / 4.066 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/9.324, allocations: 163.3 kB / 4.066 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.628e-05/9.324, allocations: 10.44 kB / 4.066 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/9.326, allocations: 175.8 kB / 4.066 GB, free: 20.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.935e-05/9.326, allocations: 31.11 kB / 4.066 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/9.326, allocations: 5.125 kB / 4.066 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002008/9.328, allocations: 0.8475 MB / 4.067 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/9.328, allocations: 3.906 kB / 4.067 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/9.328, allocations: 7.094 kB / 4.067 GB, free: 20.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005461/9.328, allocations: 163.3 kB / 4.067 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/9.328, allocations: 7.703 kB / 4.067 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/9.33, allocations: 178.3 kB / 4.067 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/9.33, allocations: 26.08 kB / 4.067 GB, free: 20.32 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 () * Number of clocked 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.0006954/9.33, allocations: 268.2 kB / 4.067 GB, free: 20.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/9.331, allocations: 71.09 kB / 4.067 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/9.334, allocations: 1.924 MB / 4.069 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.393e-05/9.334, allocations: 22.08 kB / 4.069 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/9.334, allocations: 0 / 4.069 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/9.334, allocations: 6.062 kB / 4.069 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/9.336, allocations: 1.035 MB / 4.07 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/9.336, allocations: 0 / 4.07 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006007/9.337, allocations: 137.2 kB / 4.07 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-05/9.337, allocations: 3.594 kB / 4.07 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/9.337, allocations: 19.23 kB / 4.071 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.114e-05/9.337, allocations: 3.969 kB / 4.071 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/9.337, allocations: 3.938 kB / 4.071 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/9.339, allocations: 1.197 MB / 4.072 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005887/9.34, allocations: 217 kB / 4.072 GB, free: 18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/9.34, allocations: 15.55 kB / 4.072 GB, free: 18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/9.341, allocations: 133.6 kB / 4.072 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/9.341, allocations: 81.89 kB / 4.072 GB, free: 17.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.615e-05/9.342, allocations: 24.42 kB / 4.072 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000634/9.342, allocations: 394.5 kB / 4.073 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.6e-07/9.342, allocations: 0 / 4.073 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008353/9.351, allocations: 1.203 MB / 4.074 GB, free: 17.53 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) * Number of clocked states: 0 () * 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.01425/9.365, allocations: 1.824 MB / 4.075 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004914/9.37, allocations: 1.675 MB / 4.077 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/9.37, allocations: 0 / 4.077 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001652/9.372, allocations: 0.6026 MB / 4.078 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/9.374, allocations: 331.9 kB / 4.078 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005126/9.38, allocations: 2.077 MB / 4.08 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006981/9.38, allocations: 1.015 MB / 4.081 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001148/9.382, allocations: 381.1 kB / 4.081 GB, free: 14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/9.382, allocations: 56.41 kB / 4.081 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of SimCode: time 2.705e-06/9.382, allocations: 0 / 4.081 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of Templates: time 0.4871/9.869, allocations: 46.87 MB / 4.127 GB, free: 66.53 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)