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.0016/0.0016, allocations: 180.3 kB / 16.38 MB, free: 5.766 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.088/2.088, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001222/0.001221, allocations: 97.86 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.622/0.622, allocations: 48.78 MB / 367.9 MB, free: 47.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004032, allocations: 8 kB / 438.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1943, allocations: 60.24 MB / 499 MB, free: 14.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.402/8.596, allocations: 2.851 GB / 3.338 GB, free: 106 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004365/8.597, allocations: 80.64 kB / 3.338 GB, free: 106 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.442/11.04, allocations: 0.6462 GB / 3.984 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.985e-06/11.04, allocations: 3.156 kB / 3.984 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.686e-05/11.04, allocations: 24.33 kB / 3.984 GB, free: 40.55 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.007627/11.05, allocations: 1.795 MB / 3.986 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.542e-05/11.05, allocations: 11.09 kB / 3.986 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001965/11.05, allocations: 116.5 kB / 3.986 GB, free: 39.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/11.05, allocations: 122.4 kB / 3.986 GB, free: 39.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/11.05, allocations: 0.5865 MB / 3.987 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/11.05, allocations: 58.5 kB / 3.987 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.94e-05/11.05, allocations: 63.19 kB / 3.987 GB, free: 38.94 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/11.05, allocations: 1.113 MB / 3.988 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/11.05, allocations: 7.688 kB / 3.988 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.766e-05/11.05, allocations: 31.78 kB / 3.988 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/11.05, allocations: 14.81 kB / 3.988 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/11.05, allocations: 0.8826 MB / 3.989 GB, free: 38.16 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004184/11.06, allocations: 4.415 MB / 3.993 GB, free: 34.45 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/11.06, allocations: 0.8323 MB / 3.994 GB, free: 34.21 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05559/11.12, allocations: 31.86 MB / 4.025 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/11.12, allocations: 0.5609 MB / 4.026 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 3.256e-06/11.12, allocations: 0 / 4.026 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.00364/11.12, allocations: 1.226 MB / 4.027 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/11.12, allocations: 98.81 kB / 4.027 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005733/11.12, allocations: 485.3 kB / 4.028 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.795e-05/11.12, allocations: 37.7 kB / 4.028 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/11.12, allocations: 362.6 kB / 4.028 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/11.12, allocations: 129.7 kB / 4.028 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.22e-05/11.12, allocations: 8 kB / 4.028 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001134/11.12, allocations: 381.7 kB / 4.029 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008721/11.12, allocations: 322.6 kB / 4.029 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008482/11.12, allocations: 379.3 kB / 4.029 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008663/11.12, allocations: 424.6 kB / 4.03 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/11.12, allocations: 3.844 kB / 4.03 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002064/11.13, allocations: 0.9326 MB / 4.031 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002852/11.13, allocations: 0.8104 MB / 4.031 GB, free: 9.219 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/11.13, allocations: 3.938 kB / 4.031 GB, free: 9.215 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/11.13, allocations: 4 kB / 4.031 GB, free: 9.211 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/11.13, allocations: 169.5 kB / 4.031 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/11.13, allocations: 7.953 kB / 4.031 GB, free: 9.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009757/11.13, allocations: 169.2 kB / 4.032 GB, free: 8.941 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/11.13, allocations: 23.61 kB / 4.032 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/11.13, allocations: 4 kB / 4.032 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001758/11.13, allocations: 0.8459 MB / 4.033 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/11.13, allocations: 4 kB / 4.033 GB, free: 8.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.751e-06/11.13, allocations: 4 kB / 4.033 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/11.13, allocations: 148.2 kB / 4.033 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/11.13, allocations: 11.92 kB / 4.033 GB, free: 8.031 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008401/11.13, allocations: 174.7 kB / 4.033 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/11.13, allocations: 27.75 kB / 4.033 GB, free: 7.871 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 () * Number of clocked 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.0004227/11.13, allocations: 275.1 kB / 4.033 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.193e-05/11.13, allocations: 74.62 kB / 4.033 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/11.14, allocations: 1.925 MB / 4.035 GB, free: 5.844 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/11.14, allocations: 19.45 kB / 4.035 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/11.14, allocations: 7.188 kB / 4.035 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/11.14, allocations: 3.047 kB / 4.035 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/11.14, allocations: 1.039 MB / 4.036 GB, free: 4.934 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/11.14, allocations: 0 / 4.036 GB, free: 4.934 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005789/11.14, allocations: 140.7 kB / 4.036 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/11.14, allocations: 8 kB / 4.036 GB, free: 4.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/11.14, allocations: 8 kB / 4.036 GB, free: 4.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/11.14, allocations: 4 kB / 4.036 GB, free: 4.809 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/11.14, allocations: 0 / 4.036 GB, free: 4.809 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/11.14, allocations: 1.22 MB / 4.037 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/11.14, allocations: 220 kB / 4.038 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.303e-05/11.14, allocations: 15.94 kB / 4.038 GB, free: 3.492 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007218/11.14, allocations: 139.3 kB / 4.038 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/11.14, allocations: 74.33 kB / 4.038 GB, free: 3.348 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/11.14, allocations: 19.8 kB / 4.038 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003478/11.14, allocations: 372.3 kB / 4.038 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.21e-07/11.14, allocations: 0 / 4.038 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005265/11.15, allocations: 1.196 MB / 4.039 GB, free: 1.848 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) * Number of clocked states: 0 () * 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.01036/11.16, allocations: 3.523 MB / 4.043 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003836/11.16, allocations: 1.693 MB / 4.045 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/11.16, allocations: 0 / 4.045 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001332/11.16, allocations: 0.6019 MB / 4.045 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/11.16, allocations: 329.1 kB / 4.045 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/11.18, allocations: 6.155 MB / 4.051 GB, free: 6.852 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/11.18, allocations: 1.031 MB / 4.052 GB, free: 5.793 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001148/11.18, allocations: 413.3 kB / 4.053 GB, free: 5.402 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005789/11.18, allocations: 339.3 kB / 4.053 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.944e-06/11.18, allocations: 0 / 4.053 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.511/11.69, allocations: 54.99 MB / 4.107 GB, free: 56.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/11.69, allocations: 167.1 kB / 4.107 GB, free: 56.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.473/16.16, allocations: 4 kB / 4.107 GB, free: 56.68 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)