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.001598/0.001598, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.686/1.686, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009329/0.0009329, allocations: 86.14 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5789/0.5789, allocations: 48.77 MB / 358.8 MB, free: 53.17 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.562e-05/2.556e-05, allocations: 4 kB / 425.4 MB, free: 8.137 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1625, allocations: 60.25 MB / 485.6 MB, free: 11.74 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.658/8.82, allocations: 2.85 GB / 3.324 GB, free: 135 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/8.821, allocations: 76.52 kB / 3.324 GB, free: 135 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 2.417/11.24, allocations: 0.6387 GB / 3.963 GB, free: 49.59 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.495e-06/11.24, allocations: 0 / 3.963 GB, free: 49.59 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 8.45e-05/11.24, allocations: 23.66 kB / 3.963 GB, free: 49.59 MB / 0.5265 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.008125/11.25, allocations: 1.719 MB / 3.965 GB, free: 48.75 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/11.25, allocations: 11.59 kB / 3.965 GB, free: 48.75 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007582/11.25, allocations: 122.2 kB / 3.965 GB, free: 48.7 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/11.25, allocations: 0.5888 MB / 3.966 GB, free: 48.43 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/11.25, allocations: 23.56 kB / 3.966 GB, free: 48.43 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/11.25, allocations: 43.53 kB / 3.966 GB, free: 48.43 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009918/11.25, allocations: 449.9 kB / 3.966 GB, free: 48.42 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/11.25, allocations: 0.7574 MB / 3.967 GB, free: 48.1 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/11.25, allocations: 2.438 kB / 3.967 GB, free: 48.1 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/11.25, allocations: 3.812 kB / 3.967 GB, free: 48.1 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/11.25, allocations: 15.06 kB / 3.967 GB, free: 48.1 MB / 0.5265 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004391/11.26, allocations: 4.276 MB / 3.971 GB, free: 44.92 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007493/11.26, allocations: 424.1 kB / 3.971 GB, free: 44.88 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/11.26, allocations: 172.7 kB / 3.972 GB, free: 44.86 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05887/11.32, allocations: 31.99 MB / 4.003 GB, free: 25.36 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007478/11.32, allocations: 313.2 kB / 4.003 GB, free: 25.3 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=42): time 3.507e-06/11.32, allocations: 0 / 4.003 GB, free: 25.3 MB / 0.5265 GB Notification: Performance of matching and sorting (n=42): time 0.001581/11.32, allocations: 0.5353 MB / 4.004 GB, free: 25.23 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/11.32, allocations: 85.67 kB / 4.004 GB, free: 25.14 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006188/11.32, allocations: 365 kB / 4.004 GB, free: 25.02 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 9.544e-05/11.32, allocations: 29.67 kB / 4.004 GB, free: 24.99 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/11.32, allocations: 370.9 kB / 4.004 GB, free: 24.8 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/11.32, allocations: 124.9 kB / 4.005 GB, free: 24.72 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-05/11.32, allocations: 3.906 kB / 4.005 GB, free: 24.72 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.000123/11.32, allocations: 363.9 kB / 4.005 GB, free: 24.41 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/11.32, allocations: 141 kB / 4.005 GB, free: 24.41 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/11.32, allocations: 215.6 kB / 4.005 GB, free: 24.34 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/11.32, allocations: 151.2 kB / 4.005 GB, free: 24.34 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/11.32, allocations: 0 / 4.005 GB, free: 24.34 MB / 0.5265 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009825/11.32, allocations: 490.3 kB / 4.006 GB, free: 24.27 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.000297/11.32, allocations: 0.8108 MB / 4.007 GB, free: 23.41 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/11.32, allocations: 7.281 kB / 4.007 GB, free: 23.4 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.422e-05/11.32, allocations: 3.906 kB / 4.007 GB, free: 23.4 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007772/11.32, allocations: 157.5 kB / 4.007 GB, free: 23.4 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/11.32, allocations: 5.562 kB / 4.007 GB, free: 23.4 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/11.32, allocations: 153.1 kB / 4.007 GB, free: 23.38 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/11.32, allocations: 24.69 kB / 4.007 GB, free: 23.38 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/11.32, allocations: 3.406 kB / 4.007 GB, free: 23.38 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008101/11.33, allocations: 378.4 kB / 4.007 GB, free: 23.36 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/11.33, allocations: 3.844 kB / 4.007 GB, free: 23.36 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/11.33, allocations: 11.69 kB / 4.007 GB, free: 23.36 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/11.33, allocations: 148.7 kB / 4.008 GB, free: 23.36 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/11.33, allocations: 6.312 kB / 4.008 GB, free: 23.36 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009154/11.33, allocations: 149.2 kB / 4.008 GB, free: 23.33 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/11.33, allocations: 22.59 kB / 4.008 GB, free: 23.33 MB / 0.5265 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.0002086/11.33, allocations: 125.9 kB / 4.008 GB, free: 23.22 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008485/11.33, allocations: 387.5 kB / 4.008 GB, free: 23.15 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/11.33, allocations: 54.34 kB / 4.008 GB, free: 23.12 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/11.33, allocations: 1.576 MB / 4.01 GB, free: 22.93 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/11.33, allocations: 32.53 kB / 4.01 GB, free: 22.92 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/11.33, allocations: 0 / 4.01 GB, free: 22.92 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/11.33, allocations: 0 / 4.01 GB, free: 22.92 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/11.33, allocations: 0.9083 MB / 4.011 GB, free: 22.72 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/11.33, allocations: 3.719 kB / 4.011 GB, free: 22.72 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006028/11.33, allocations: 144.2 kB / 4.011 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/11.33, allocations: 3.688 kB / 4.011 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/11.33, allocations: 3.188 kB / 4.011 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/11.33, allocations: 3.938 kB / 4.011 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/11.33, allocations: 0 / 4.011 GB, free: 22.71 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/11.33, allocations: 0.8667 MB / 4.012 GB, free: 22.54 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000299/11.33, allocations: 207.1 kB / 4.012 GB, free: 22.38 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/11.33, allocations: 3.188 kB / 4.012 GB, free: 22.38 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008168/11.33, allocations: 135.3 kB / 4.012 GB, free: 22.36 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/11.33, allocations: 85.34 kB / 4.012 GB, free: 22.36 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/11.33, allocations: 13.66 kB / 4.012 GB, free: 22.36 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.0002932/11.33, allocations: 275.2 kB / 4.012 GB, free: 22.27 MB / 0.5265 GB Notification: Performance of sort global known variables: time 2e-07/11.33, allocations: 0 / 4.012 GB, free: 22.27 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.005595/11.34, allocations: 1.132 MB / 4.013 GB, free: 22.09 MB / 0.5265 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.01024/11.35, allocations: 3.442 MB / 4.017 GB, free: 21.01 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.001947/11.35, allocations: 1.182 MB / 4.018 GB, free: 20.48 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/11.35, allocations: 0 / 4.018 GB, free: 20.48 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.0007499/11.35, allocations: 452.4 kB / 4.018 GB, free: 20.46 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/11.36, allocations: 233.6 kB / 4.019 GB, free: 20.45 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/11.37, allocations: 1.688 MB / 4.02 GB, free: 19.93 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007435/11.37, allocations: 1.032 MB / 4.021 GB, free: 19.21 MB / 0.5265 GB Notification: Performance of simCode: alias equations: time 0.001918/11.37, allocations: 423.5 kB / 4.022 GB, free: 19.18 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007482/11.37, allocations: 332.9 kB / 4.022 GB, free: 19.17 MB / 0.5265 GB Notification: Performance of SimCode: time 1.272e-06/11.37, allocations: 0 / 4.022 GB, free: 19.17 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1073/11.48, allocations: 43.34 MB / 4.064 GB, free: 5.949 MB / 0.5265 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/11.48, allocations: 130.6 kB / 4.064 GB, free: 5.754 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.696/15.17, allocations: 0 / 4.064 GB, free: 5.754 MB / 0.5265 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)