Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.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.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",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.00138/0.001381, allocations: 93.12 kB / 16.3 MB, free: 5.992 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.002471/0.002471, allocations: 176.3 kB / 17.19 MB, free: 5.91 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.561/1.561, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4989/0.4989, allocations: 48.77 MB / 320.4 MB, free: 3.84 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.0009289/0.000929, allocations: 16 kB / 391.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1737, allocations: 60.25 MB / 451.5 MB, free: 1.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3979/0.5718, allocations: 92 MB / 0.5308 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.5883, allocations: 10.3 MB / 0.5408 GB, free: 6.961 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001896/0.5903, allocations: 23.81 kB / 0.5408 GB, free: 6.938 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.5928, allocations: 477.7 kB / 0.5413 GB, free: 6.469 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00247/0.5953, allocations: 0.5919 MB / 0.5419 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01715/0.6125, allocations: 4.486 MB / 0.5463 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.6148, allocations: 1.106 MB / 0.5473 GB, free: 308 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.6161, allocations: 0.5712 MB / 0.5479 GB, free: 15.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.6173, allocations: 0.5334 MB / 0.5484 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008781/0.6182, allocations: 490 kB / 0.5489 GB, free: 14.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001982/0.6184, allocations: 48 kB / 0.5489 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01292/0.6314, allocations: 6.262 MB / 0.555 GB, free: 8.387 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003835/0.6318, allocations: 147.4 kB / 0.5552 GB, free: 8.242 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005496/0.6324, allocations: 201.2 kB / 0.5554 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008372/0.6408, allocations: 2.921 MB / 0.5582 GB, free: 5.113 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.6408, allocations: 0 / 0.5582 GB, free: 5.113 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6408, allocations: 4 kB / 0.5582 GB, free: 5.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.888e-05/0.6409, allocations: 0 / 0.5582 GB, free: 5.109 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.005773/0.6467, allocations: 1.753 MB / 0.5599 GB, free: 3.285 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.6467, allocations: 12.03 kB / 0.56 GB, free: 3.273 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002447/0.647, allocations: 114.5 kB / 0.5601 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004695/0.6475, allocations: 118.9 kB / 0.5602 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000937/0.6484, allocations: 0.4908 MB / 0.5607 GB, free: 2.504 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.207e-05/0.6485, allocations: 61.98 kB / 0.5607 GB, free: 2.441 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.6487, allocations: 75.89 kB / 0.5608 GB, free: 2.367 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.6512, allocations: 1.011 MB / 0.5618 GB, free: 1.305 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.6513, allocations: 5.047 kB / 0.5618 GB, free: 1.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.14e-05/0.6513, allocations: 28 kB / 0.5618 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.6514, allocations: 19.94 kB / 0.5618 GB, free: 1.254 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.6541, allocations: 0.8832 MB / 0.5627 GB, free: 380 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00608/0.6602, allocations: 4.719 MB / 0.5673 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002765/0.663, allocations: 0.8129 MB / 0.5681 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08802/0.7511, allocations: 32.29 MB / 0.5996 GB, free: 6.266 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003421/0.7545, allocations: 0.5516 MB / 0.6002 GB, free: 5.695 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 5.44e-06/0.7546, allocations: 0 / 0.6002 GB, free: 5.695 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.007938/0.7625, allocations: 1.209 MB / 0.6013 GB, free: 4.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.7627, allocations: 93.06 kB / 0.6014 GB, free: 4.371 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.7642, allocations: 0.5549 MB / 0.602 GB, free: 3.809 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.7644, allocations: 41.7 kB / 0.602 GB, free: 3.762 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006335/0.7651, allocations: 372.3 kB / 0.6024 GB, free: 3.391 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.7654, allocations: 134.1 kB / 0.6025 GB, free: 3.258 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.506e-05/0.7655, allocations: 8 kB / 0.6025 GB, free: 3.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002822/0.7658, allocations: 382.8 kB / 0.6029 GB, free: 2.867 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.7678, allocations: 304.9 kB / 0.6032 GB, free: 2.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/0.7698, allocations: 417 kB / 0.6036 GB, free: 2.125 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.7717, allocations: 414.6 kB / 0.604 GB, free: 1.695 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.7717, allocations: 4 kB / 0.604 GB, free: 1.691 MB / 478.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.004744/0.7765, allocations: 0.9474 MB / 0.6049 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007144/0.7772, allocations: 1.171 MB / 0.606 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.855e-05/0.7773, allocations: 0.8125 kB / 0.606 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.091e-05/0.7773, allocations: 8 kB / 0.606 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.7788, allocations: 159.8 kB / 0.6062 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/0.7788, allocations: 15.92 kB / 0.6062 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.7807, allocations: 167.3 kB / 0.6064 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.7808, allocations: 27.98 kB / 0.6064 GB, free: 15.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.7808, allocations: 4 kB / 0.6064 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004241/0.7851, allocations: 0.8469 MB / 0.6072 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.7851, allocations: 4 kB / 0.6072 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.7852, allocations: 4 kB / 0.6072 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.7864, allocations: 159.9 kB / 0.6074 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.7864, allocations: 15.86 kB / 0.6074 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.7881, allocations: 167.3 kB / 0.6076 GB, free: 13.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.7882, allocations: 25.39 kB / 0.6076 GB, free: 13.82 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition4,$whenCondition3,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,$whenCondition2,$whenCondition1,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0007031/0.7889, allocations: 279.1 kB / 0.6078 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.7892, allocations: 75.09 kB / 0.6079 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006132/0.7953, allocations: 1.928 MB / 0.6098 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.006e-05/0.7954, allocations: 19.97 kB / 0.6098 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.7955, allocations: 1.188 kB / 0.6098 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.7955, allocations: 7.922 kB / 0.6098 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005487/0.801, allocations: 2.026 MB / 0.6118 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.8011, allocations: 0 / 0.6118 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.8023, allocations: 139.8 kB / 0.6119 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.8023, allocations: 7.984 kB / 0.6119 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.283e-05/0.8024, allocations: 15.98 kB / 0.612 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.331e-05/0.8025, allocations: 6.188 kB / 0.612 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.8025, allocations: 3.938 kB / 0.612 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004282/0.8068, allocations: 1.293 MB / 0.6132 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/0.8073, allocations: 219.5 kB / 0.6134 GB, free: 7.676 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.8075, allocations: 12 kB / 0.6135 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.8088, allocations: 135.7 kB / 0.6136 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/0.8091, allocations: 95.81 kB / 0.6137 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.537e-05/0.8092, allocations: 8 kB / 0.6137 GB, free: 7.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006733/0.8099, allocations: 395.1 kB / 0.6141 GB, free: 7.051 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.8099, allocations: 4 kB / 0.6141 GB, free: 7.047 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004316/0.8142, allocations: 1.128 MB / 0.6152 GB, free: 5.918 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine2.count,Sine1.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.007908/0.8221, allocations: 2.864 MB / 0.618 GB, free: 3.012 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004109/0.8263, allocations: 1.681 MB / 0.6196 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.8263, allocations: 0 / 0.6196 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.8277, allocations: 0.6082 MB / 0.6202 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.8298, allocations: 358.3 kB / 0.6205 GB, free: 288 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.8445, allocations: 6.784 MB / 0.6272 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000909/0.8455, allocations: 1.039 MB / 0.6282 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001395/0.8469, allocations: 384.5 kB / 0.6285 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007088/0.8476, allocations: 347.3 kB / 0.6289 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of SimCode: time 8.11e-07/0.8476, allocations: 0 / 0.6289 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3442/1.192, allocations: 49.17 MB / 0.6769 GB, free: 149.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/1.192, allocations: 169.7 kB / 0.6771 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.076/7.268, allocations: 0 / 0.6771 GB, free: 149.6 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1) Environment - environmentSimulation: