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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001299/0.001299, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.91/1.91, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001108/0.001108, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.377/0.377, allocations: 48.79 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.402e-05/3.404e-05, allocations: 4 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.158, allocations: 60.24 MB / 492.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.313/8.471, allocations: 2.851 GB / 3.332 GB, free: 156 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/8.471, allocations: 76 kB / 3.332 GB, free: 156 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.404/10.88, allocations: 0.6755 GB / 4.008 GB, free: 47.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/10.88, allocations: 3.312 kB / 4.008 GB, free: 47.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.223e-05/10.88, allocations: 20.61 kB / 4.008 GB, free: 47.64 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.007038/10.88, allocations: 1.728 MB / 4.009 GB, free: 46.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/10.88, allocations: 12.09 kB / 4.009 GB, free: 46.73 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002287/10.88, allocations: 112.9 kB / 4.01 GB, free: 46.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005074/10.88, allocations: 129.3 kB / 4.01 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/10.88, allocations: 0.5856 MB / 4.01 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/10.88, allocations: 50.88 kB / 4.01 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-05/10.88, allocations: 72.98 kB / 4.01 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/10.89, allocations: 1.004 MB / 4.011 GB, free: 46 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/10.89, allocations: 0 / 4.011 GB, free: 46 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.877e-05/10.89, allocations: 37.55 kB / 4.011 GB, free: 46 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/10.89, allocations: 19.16 kB / 4.011 GB, free: 46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/10.89, allocations: 0.5784 MB / 4.012 GB, free: 45.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004918/10.89, allocations: 4.736 MB / 4.017 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/10.89, allocations: 0.5208 MB / 4.017 GB, free: 42.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/10.89, allocations: 170.6 kB / 4.017 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05795/10.95, allocations: 31.99 MB / 4.049 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/10.95, allocations: 418.2 kB / 4.049 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 2.665e-06/10.95, allocations: 4 kB / 4.049 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.00165/10.95, allocations: 0.6507 MB / 4.05 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/10.95, allocations: 88.81 kB / 4.05 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/10.96, allocations: 498.1 kB / 4.05 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.512e-05/10.96, allocations: 39.84 kB / 4.05 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/10.96, allocations: 368.8 kB / 4.051 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.812e-05/10.96, allocations: 130.3 kB / 4.051 GB, free: 22.37 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/10.96, allocations: 10.78 kB / 4.051 GB, free: 22.37 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001168/10.96, allocations: 380.9 kB / 4.051 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/10.96, allocations: 143.1 kB / 4.051 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003051/10.96, allocations: 237.5 kB / 4.051 GB, free: 21.94 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/10.96, allocations: 262.9 kB / 4.052 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/10.96, allocations: 0 / 4.052 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008288/10.96, allocations: 0.6127 MB / 4.052 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002675/10.96, allocations: 1.154 MB / 4.053 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/10.96, allocations: 7.703 kB / 4.053 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/10.96, allocations: 4.562 kB / 4.053 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/10.96, allocations: 167.3 kB / 4.054 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/10.96, allocations: 10.47 kB / 4.054 GB, free: 20.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000946/10.96, allocations: 176.3 kB / 4.054 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.297e-05/10.96, allocations: 23.47 kB / 4.054 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/10.96, allocations: 5.984 kB / 4.054 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007302/10.96, allocations: 0.5286 MB / 4.054 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/10.96, allocations: 7.172 kB / 4.054 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/10.96, allocations: 7 kB / 4.054 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005804/10.96, allocations: 166.9 kB / 4.054 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/10.96, allocations: 3.625 kB / 4.054 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008195/10.96, allocations: 176.2 kB / 4.055 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/10.96, allocations: 23.38 kB / 4.055 GB, free: 19.75 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.0001613/10.96, allocations: 148.6 kB / 4.055 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.554e-05/10.96, allocations: 71.31 kB / 4.055 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/10.96, allocations: 1.597 MB / 4.056 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/10.96, allocations: 22.97 kB / 4.056 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/10.96, allocations: 0 / 4.056 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/10.96, allocations: 3.562 kB / 4.056 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/10.97, allocations: 1.03 MB / 4.057 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/10.97, allocations: 2.156 kB / 4.057 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005713/10.97, allocations: 142.2 kB / 4.058 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/10.97, allocations: 0 / 4.058 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/10.97, allocations: 12.39 kB / 4.058 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/10.97, allocations: 7.875 kB / 4.058 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/10.97, allocations: 3.984 kB / 4.058 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009579/10.97, allocations: 0.8819 MB / 4.058 GB, free: 17.76 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/10.97, allocations: 225.7 kB / 4.059 GB, free: 17.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.813e-05/10.97, allocations: 11.94 kB / 4.059 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007331/10.97, allocations: 142 kB / 4.059 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/10.97, allocations: 75.75 kB / 4.059 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.223e-05/10.97, allocations: 19.47 kB / 4.059 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004343/10.97, allocations: 379.8 kB / 4.059 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/10.97, allocations: 0 / 4.059 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005455/10.97, allocations: 1.211 MB / 4.06 GB, free: 17.11 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.009052/10.98, allocations: 3.218 MB / 4.064 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001853/10.98, allocations: 1.203 MB / 4.065 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/10.98, allocations: 0 / 4.065 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005542/10.99, allocations: 453.9 kB / 4.065 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/10.99, allocations: 340.8 kB / 4.065 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005758/10.99, allocations: 1.715 MB / 4.067 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/10.99, allocations: 1.034 MB / 4.068 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009592/10.99, allocations: 418.5 kB / 4.069 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/11, allocations: 334.7 kB / 4.069 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of SimCode: time 2.736e-06/11, allocations: 0 / 4.069 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4999/11.5, allocations: 62.09 MB / 4.13 GB, free: 53.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/11.5, allocations: 150 kB / 4.13 GB, free: 53.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.236/15.73, allocations: 4 kB / 4.13 GB, free: 53.43 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)