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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008003/0.0008002, allocations: 86.5 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000842/0.000842, allocations: 178.8 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.4 MB / 223.4 MB, free: 5.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4976/0.4976, allocations: 48.77 MB / 320.4 MB, free: 3.809 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005217/0.0005219, allocations: 15.98 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1276, allocations: 60.26 MB / 451.5 MB, free: 1.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.335/0.4626, allocations: 98.06 MB / 0.5367 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.4768, allocations: 11.07 MB / 0.5475 GB, free: 48 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.4779, allocations: 23.81 kB / 0.5475 GB, free: 24 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.4793, allocations: 437.3 kB / 0.548 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001498/0.4808, allocations: 0.6872 MB / 0.5486 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01375/0.4946, allocations: 4.382 MB / 0.5529 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.4977, allocations: 2.237 MB / 0.5551 GB, free: 8.281 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.4988, allocations: 0.5231 MB / 0.5556 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.5002, allocations: 0.6148 MB / 0.5562 GB, free: 7.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009232/0.5011, allocations: 0.6575 MB / 0.5568 GB, free: 6.473 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.741e-05/0.5012, allocations: 51.98 kB / 0.5569 GB, free: 6.422 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01143/0.5127, allocations: 6.055 MB / 0.5628 GB, free: 368 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003382/0.5131, allocations: 143.4 kB / 0.5629 GB, free: 224 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000416/0.5135, allocations: 193.3 kB / 0.5631 GB, free: 24 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006053/0.5196, allocations: 2.935 MB / 0.566 GB, free: 13.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.5196, allocations: 0 / 0.566 GB, free: 13.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5196, allocations: 0 / 0.566 GB, free: 13.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.5196, allocations: 0 / 0.566 GB, free: 13.09 MB / 446.1 MB 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.004997/0.5246, allocations: 1.757 MB / 0.5677 GB, free: 11.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.5247, allocations: 16.02 kB / 0.5677 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.5248, allocations: 110.5 kB / 0.5678 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.5252, allocations: 122.8 kB / 0.568 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.5258, allocations: 0.4985 MB / 0.5684 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.5259, allocations: 51.31 kB / 0.5685 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.361e-05/0.526, allocations: 64 kB / 0.5685 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002066/0.528, allocations: 0.981 MB / 0.5695 GB, free: 9.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.5281, allocations: 7.875 kB / 0.5695 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.5281, allocations: 31.98 kB / 0.5695 GB, free: 9.281 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.5282, allocations: 19.95 kB / 0.5696 GB, free: 9.262 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002253/0.5304, allocations: 0.8793 MB / 0.5704 GB, free: 8.383 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/0.5344, allocations: 4.378 MB / 0.5747 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.5366, allocations: 0.8208 MB / 0.5755 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.5375, allocations: 346.2 kB / 0.5758 GB, free: 2.375 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05648/0.594, allocations: 32.31 MB / 0.6074 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001571/0.5956, allocations: 0.5688 MB / 0.6079 GB, free: 13.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.5956, allocations: 0 / 0.6079 GB, free: 13.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=44): time 0.003455/0.5991, allocations: 1.231 MB / 0.6091 GB, free: 12.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.5992, allocations: 93.05 kB / 0.6092 GB, free: 12.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005659/0.5997, allocations: 0.5315 MB / 0.6098 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.5998, allocations: 37.7 kB / 0.6098 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.6, allocations: 340.5 kB / 0.6101 GB, free: 11.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.6002, allocations: 142 kB / 0.6102 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.6002, allocations: 12 kB / 0.6103 GB, free: 11.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.6004, allocations: 374.8 kB / 0.6106 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008284/0.6012, allocations: 320.7 kB / 0.6109 GB, free: 10.56 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000839/0.6021, allocations: 387.7 kB / 0.6113 GB, free: 10.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008497/0.6029, allocations: 424.1 kB / 0.6117 GB, free: 9.723 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.6029, allocations: 7.953 kB / 0.6117 GB, free: 9.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002014/0.6049, allocations: 0.9325 MB / 0.6126 GB, free: 8.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.6051, allocations: 253.9 kB / 0.6129 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.6051, allocations: 0 / 0.6129 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.6052, allocations: 4 kB / 0.6129 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/0.6058, allocations: 159.7 kB / 0.613 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.6058, allocations: 4 kB / 0.613 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007765/0.6066, allocations: 171.3 kB / 0.6132 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.246e-05/0.6067, allocations: 24 kB / 0.6132 GB, free: 8.094 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.672e-06/0.6067, allocations: 4 kB / 0.6132 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001783/0.6085, allocations: 0.8455 MB / 0.614 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.6085, allocations: 7.953 kB / 0.614 GB, free: 7.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.202e-06/0.6085, allocations: 4 kB / 0.614 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005211/0.609, allocations: 152 kB / 0.6142 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.609, allocations: 4 kB / 0.6142 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.6097, allocations: 171.4 kB / 0.6144 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.6098, allocations: 23.88 kB / 0.6144 GB, free: 6.867 MB / 494.1 MB 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.0003197/0.6101, allocations: 271.1 kB / 0.6146 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.343e-05/0.6102, allocations: 71.16 kB / 0.6147 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.613, allocations: 1.942 MB / 0.6166 GB, free: 4.562 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.74e-05/0.6131, allocations: 23.97 kB / 0.6166 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6131, allocations: 0 / 0.6166 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.6131, allocations: 3.984 kB / 0.6166 GB, free: 4.535 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002618/0.6157, allocations: 2.058 MB / 0.6186 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.6157, allocations: 0 / 0.6186 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005292/0.6163, allocations: 139.9 kB / 0.6188 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.423e-06/0.6163, allocations: 0 / 0.6188 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.6163, allocations: 16 kB / 0.6188 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.6163, allocations: 7.922 kB / 0.6188 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6164, allocations: 4 kB / 0.6188 GB, free: 2.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.6185, allocations: 1.283 MB / 0.6201 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.6188, allocations: 227.5 kB / 0.6203 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.6189, allocations: 8 kB / 0.6203 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006741/0.6195, allocations: 143.7 kB / 0.6204 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.6198, allocations: 95.8 kB / 0.6205 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.6198, allocations: 16 kB / 0.6205 GB, free: 448 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003665/0.6202, allocations: 375.1 kB / 0.6209 GB, free: 76 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6202, allocations: 0 / 0.6209 GB, free: 76 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.003045/0.6232, allocations: 1.112 MB / 0.622 GB, free: 14.96 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine1.count,Sine2.count,Sine4.count,Sine3.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 36 * 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.007368/0.6306, allocations: 2.74 MB / 0.6246 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005012/0.6357, allocations: 1.683 MB / 0.6263 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.6357, allocations: 0 / 0.6263 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001965/0.6377, allocations: 0.6322 MB / 0.6269 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/0.6406, allocations: 361.6 kB / 0.6272 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.6545, allocations: 5.071 MB / 0.6322 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007802/0.6553, allocations: 1.011 MB / 0.6332 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001417/0.6567, allocations: 401.4 kB / 0.6336 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006705/0.6574, allocations: 331.3 kB / 0.6339 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of SimCode: time 1.203e-06/0.6574, allocations: 4 kB / 0.6339 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3124/0.9698, allocations: 49.01 MB / 0.6817 GB, free: 147.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.97, allocations: 173.5 kB / 0.6819 GB, free: 147 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.498/5.468, allocations: 1.75 kB / 0.6819 GB, free: 147 MB / 0.4981 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) Environment - environmentSimulation: