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.00151/0.00151, allocations: 97.67 kB / 16.3 MB, free: 5.656 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.001844/0.001844, allocations: 183.2 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.306/2.306, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4528/0.4528, allocations: 48.79 MB / 320.4 MB, free: 11.31 MB / 270.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.000531/0.000531, allocations: 12.62 kB / 391.2 MB, free: 50.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1277, allocations: 60.27 MB / 451.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.1581/0.2858, allocations: 88.12 MB / 0.527 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3117/0.5976, allocations: 10.26 MB / 0.537 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.5995, allocations: 26.41 kB / 0.537 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002495/0.6021, allocations: 460.5 kB / 0.5375 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002879/0.605, allocations: 0.5714 MB / 0.538 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01843/0.6234, allocations: 4.486 MB / 0.5424 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002668/0.6261, allocations: 1.073 MB / 0.5434 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.6274, allocations: 0.5477 MB / 0.544 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.6289, allocations: 0.5293 MB / 0.5445 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.6301, allocations: 492.9 kB / 0.545 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.6302, allocations: 48.69 kB / 0.545 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01628/0.6465, allocations: 6.262 MB / 0.5511 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005669/0.6471, allocations: 152.2 kB / 0.5513 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007678/0.6479, allocations: 192.5 kB / 0.5515 GB, free: 11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008792/0.6567, allocations: 2.919 MB / 0.5543 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.6568, allocations: 0 / 0.5543 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.6568, allocations: 0 / 0.5543 GB, free: 10.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.282e-05/0.6568, allocations: 1.344 kB / 0.5543 GB, free: 10.87 MB / 414.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.007057/0.6639, allocations: 1.747 MB / 0.556 GB, free: 9.918 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.664, allocations: 10.83 kB / 0.556 GB, free: 9.918 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002124/0.6642, allocations: 120.4 kB / 0.5561 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003985/0.6646, allocations: 121.8 kB / 0.5563 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00091/0.6655, allocations: 0.5005 MB / 0.5567 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.6656, allocations: 49 kB / 0.5568 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.6657, allocations: 68.61 kB / 0.5569 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.6681, allocations: 0.9724 MB / 0.5578 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.6681, allocations: 0 / 0.5578 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.567e-05/0.6682, allocations: 31.81 kB / 0.5578 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.6682, allocations: 16.72 kB / 0.5579 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.671, allocations: 0.8818 MB / 0.5587 GB, free: 9.383 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.676, allocations: 4.372 MB / 0.563 GB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002586/0.6787, allocations: 0.8447 MB / 0.5638 GB, free: 5.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06895/0.7476, allocations: 32.29 MB / 0.5953 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001778/0.7495, allocations: 0.5726 MB / 0.5959 GB, free: 12.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=44): time 3.126e-06/0.7495, allocations: 0 / 0.5959 GB, free: 12.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=44): time 0.004123/0.7536, allocations: 1.228 MB / 0.5971 GB, free: 11.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.7537, allocations: 93.03 kB / 0.5972 GB, free: 11.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006465/0.7544, allocations: 0.5352 MB / 0.5977 GB, free: 11.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.635e-05/0.7545, allocations: 35.64 kB / 0.5977 GB, free: 11.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.7548, allocations: 351 kB / 0.5981 GB, free: 10.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.7549, allocations: 138 kB / 0.5982 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.755, allocations: 11.12 kB / 0.5982 GB, free: 10.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.7552, allocations: 378.8 kB / 0.5986 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009785/0.7562, allocations: 312.3 kB / 0.5989 GB, free: 10.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009997/0.7572, allocations: 388.3 kB / 0.5993 GB, free: 9.809 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.7584, allocations: 421.6 kB / 0.5997 GB, free: 9.445 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.7584, allocations: 0 / 0.5997 GB, free: 9.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.003783/0.7622, allocations: 0.9332 MB / 0.6006 GB, free: 8.633 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004492/0.7627, allocations: 0.8163 MB / 0.6014 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.7627, allocations: 4 kB / 0.6014 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.7627, allocations: 4 kB / 0.6014 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007183/0.7635, allocations: 157.2 kB / 0.6015 GB, free: 7.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.7635, allocations: 6.812 kB / 0.6015 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.7645, allocations: 170 kB / 0.6017 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/0.7646, allocations: 27.3 kB / 0.6017 GB, free: 7.426 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.016e-06/0.7646, allocations: 4 kB / 0.6017 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003212/0.7678, allocations: 0.844 MB / 0.6025 GB, free: 6.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.7679, allocations: 4 kB / 0.6025 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.7679, allocations: 7.938 kB / 0.6026 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.7689, allocations: 155.9 kB / 0.6027 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.769, allocations: 4 kB / 0.6027 GB, free: 6.559 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.7707, allocations: 161.6 kB / 0.6029 GB, free: 6.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.7708, allocations: 27.11 kB / 0.6029 GB, free: 6.387 MB / 446.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.0006752/0.7715, allocations: 274.7 kB / 0.6031 GB, free: 6.156 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.7717, allocations: 71.16 kB / 0.6032 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005293/0.777, allocations: 1.937 MB / 0.6051 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.238e-05/0.7771, allocations: 26.95 kB / 0.6051 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.7772, allocations: 0 / 0.6051 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.7772, allocations: 3.984 kB / 0.6051 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004069/0.7813, allocations: 2.06 MB / 0.6071 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.7813, allocations: 0 / 0.6071 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006551/0.782, allocations: 139.1 kB / 0.6073 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.782, allocations: 4 kB / 0.6073 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.7821, allocations: 16.92 kB / 0.6073 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.7821, allocations: 2.625 kB / 0.6073 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.7821, allocations: 7.953 kB / 0.6073 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002884/0.785, allocations: 1.327 MB / 0.6086 GB, free: 2.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004865/0.7855, allocations: 220.8 kB / 0.6088 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.7856, allocations: 14.38 kB / 0.6088 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.7867, allocations: 145.7 kB / 0.609 GB, free: 1.664 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/0.7871, allocations: 89.28 kB / 0.6091 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/0.7872, allocations: 15.23 kB / 0.6091 GB, free: 1.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005733/0.7877, allocations: 378.8 kB / 0.6094 GB, free: 1.309 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7877, allocations: 0 / 0.6094 GB, free: 1.309 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006578/0.7943, allocations: 1.114 MB / 0.6105 GB, free: 248 kB / 446.1 MB 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.01214/0.8065, allocations: 2.963 MB / 0.6134 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004112/0.8107, allocations: 1.68 MB / 0.6151 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.8108, allocations: 6.469 kB / 0.6151 GB, free: 12.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.8123, allocations: 0.636 MB / 0.6157 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.8144, allocations: 346.1 kB / 0.616 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.8259, allocations: 6.105 MB / 0.622 GB, free: 6.125 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/0.8265, allocations: 1.03 MB / 0.623 GB, free: 5.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009239/0.8274, allocations: 406.4 kB / 0.6234 GB, free: 4.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004207/0.8278, allocations: 333.5 kB / 0.6237 GB, free: 4.602 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.8279, allocations: 4 kB / 0.6237 GB, free: 4.598 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08601/0.9139, allocations: 49 MB / 0.6715 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.9141, allocations: 168.7 kB / 0.6717 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.794/6.708, allocations: 0 / 0.6717 GB, free: 3.477 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: