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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",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.002167/0.002167, allocations: 175.1 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 2.135/2.135, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.00113/0.00113, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3947/0.3947, allocations: 48.78 MB / 364.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.968e-05/3.972e-05, allocations: 11.98 kB / 432.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1741, allocations: 60.25 MB / 492.8 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.362/8.536, allocations: 2.851 GB / 3.332 GB, free: 155.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/8.537, allocations: 82.47 kB / 3.332 GB, free: 155.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.129/10.67, allocations: 0.6433 GB / 3.975 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.994e-06/10.67, allocations: 0 / 3.975 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.155e-05/10.67, allocations: 24.69 kB / 3.975 GB, free: 49.75 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.00599/10.67, allocations: 1.713 MB / 3.977 GB, free: 48.94 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/10.67, allocations: 9.75 kB / 3.977 GB, free: 48.94 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/10.67, allocations: 113.9 kB / 3.977 GB, free: 48.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/10.67, allocations: 124.1 kB / 3.977 GB, free: 48.85 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/10.67, allocations: 0.5882 MB / 3.978 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/10.67, allocations: 47.88 kB / 3.978 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/10.67, allocations: 71.78 kB / 3.978 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/10.67, allocations: 0.9581 MB / 3.979 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/10.67, allocations: 4.062 kB / 3.979 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.377e-05/10.67, allocations: 36.33 kB / 3.979 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/10.67, allocations: 19.66 kB / 3.979 GB, free: 48.26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/10.68, allocations: 0.5709 MB / 3.98 GB, free: 48.25 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003713/10.68, allocations: 4.419 MB / 3.984 GB, free: 45.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/10.68, allocations: 0.5288 MB / 3.984 GB, free: 44.98 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/10.68, allocations: 180.8 kB / 3.985 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0518/10.73, allocations: 31.99 MB / 4.016 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/10.73, allocations: 433.6 kB / 4.016 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.515e-06/10.73, allocations: 2.734 kB / 4.016 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.001878/10.74, allocations: 0.6587 MB / 4.017 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/10.74, allocations: 90.11 kB / 4.017 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006268/10.74, allocations: 478.5 kB / 4.017 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.178e-05/10.74, allocations: 36.73 kB / 4.018 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/10.74, allocations: 359.5 kB / 4.018 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/10.74, allocations: 136 kB / 4.018 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/10.74, allocations: 9.75 kB / 4.018 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001331/10.74, allocations: 372.6 kB / 4.018 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/10.74, allocations: 146.1 kB / 4.019 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/10.74, allocations: 220.6 kB / 4.019 GB, free: 24.58 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/10.74, allocations: 254 kB / 4.019 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/10.74, allocations: 3.875 kB / 4.019 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008661/10.74, allocations: 0.6059 MB / 4.02 GB, free: 24.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002137/10.74, allocations: 0.8125 MB / 4.02 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/10.74, allocations: 0 / 4.02 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/10.74, allocations: 7.656 kB / 4.02 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007355/10.74, allocations: 160.2 kB / 4.021 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/10.74, allocations: 3.688 kB / 4.021 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/10.74, allocations: 182 kB / 4.021 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.248e-05/10.74, allocations: 22.28 kB / 4.021 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/10.74, allocations: 8.781 kB / 4.021 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007064/10.74, allocations: 0.5264 MB / 4.021 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/10.74, allocations: 0 / 4.021 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.754e-06/10.74, allocations: 3.5 kB / 4.021 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/10.74, allocations: 151.8 kB / 4.021 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/10.74, allocations: 3.594 kB / 4.021 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000861/10.74, allocations: 173 kB / 4.022 GB, free: 23.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/10.74, allocations: 24.75 kB / 4.022 GB, free: 23.2 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.0001823/10.74, allocations: 140.5 kB / 4.022 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/10.74, allocations: 67.73 kB / 4.022 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/10.75, allocations: 1.62 MB / 4.023 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/10.75, allocations: 20.56 kB / 4.023 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/10.75, allocations: 3.875 kB / 4.023 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/10.75, allocations: 2.406 kB / 4.023 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/10.75, allocations: 1.027 MB / 4.024 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/10.75, allocations: 3.906 kB / 4.024 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000629/10.75, allocations: 133.6 kB / 4.025 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/10.75, allocations: 10.2 kB / 4.025 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/10.75, allocations: 11.56 kB / 4.025 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/10.75, allocations: 3.906 kB / 4.025 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/10.75, allocations: 0 / 4.025 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/10.75, allocations: 0.8962 MB / 4.025 GB, free: 22.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003316/10.75, allocations: 221.2 kB / 4.026 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.892e-05/10.75, allocations: 10.34 kB / 4.026 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007657/10.75, allocations: 142.8 kB / 4.026 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/10.75, allocations: 79.55 kB / 4.026 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/10.75, allocations: 11.66 kB / 4.026 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000417/10.75, allocations: 379.5 kB / 4.026 GB, free: 22.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/10.75, allocations: 0 / 4.026 GB, free: 22.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005733/10.76, allocations: 1.181 MB / 4.027 GB, free: 22.01 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.01067/10.77, allocations: 3.206 MB / 4.03 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001734/10.77, allocations: 1.215 MB / 4.032 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/10.77, allocations: 0 / 4.032 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005485/10.77, allocations: 454.4 kB / 4.032 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/10.77, allocations: 333.2 kB / 4.032 GB, free: 20.39 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00596/10.78, allocations: 1.737 MB / 4.034 GB, free: 19.89 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/10.78, allocations: 1.027 MB / 4.035 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009853/10.78, allocations: 437.3 kB / 4.036 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000403/10.78, allocations: 332.6 kB / 4.036 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of SimCode: time 1.092e-06/10.78, allocations: 0 / 4.036 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09892/10.88, allocations: 60.85 MB / 4.095 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002655/10.88, allocations: 146.8 kB / 4.095 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.167/15.04, allocations: 0 / 4.095 GB, free: 9.273 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)