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.0007963/0.0007964, allocations: 90.81 kB / 16.31 MB, free: 5.531 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.0008485/0.0008485, allocations: 181.1 kB / 17.2 MB, free: 5.469 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.437/1.437, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3169/0.3169, allocations: 48.77 MB / 320.4 MB, free: 11.21 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.0005306/0.0005306, allocations: 12.5 kB / 391.3 MB, free: 50.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1148, allocations: 60.27 MB / 451.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3514/0.4663, allocations: 102.4 MB / 0.5409 GB, free: 10.74 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.4795, allocations: 11.1 MB / 0.5518 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009021/0.4805, allocations: 25.88 kB / 0.5518 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.4818, allocations: 449.9 kB / 0.5522 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.4832, allocations: 0.7274 MB / 0.5529 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01278/0.496, allocations: 4.379 MB / 0.5572 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00276/0.4987, allocations: 2.325 MB / 0.5595 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008061/0.4996, allocations: 0.5416 MB / 0.56 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009196/0.5005, allocations: 0.6231 MB / 0.5606 GB, free: 9.961 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006944/0.5012, allocations: 0.6721 MB / 0.5613 GB, free: 9.824 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.542e-05/0.5013, allocations: 48.06 kB / 0.5613 GB, free: 9.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01078/0.5121, allocations: 6.059 MB / 0.5672 GB, free: 9.715 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002948/0.5124, allocations: 146.6 kB / 0.5674 GB, free: 9.684 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006024/0.513, allocations: 200.5 kB / 0.5676 GB, free: 9.625 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005046/0.5181, allocations: 2.941 MB / 0.5704 GB, free: 9.051 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5181, allocations: 0 / 0.5704 GB, free: 9.051 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5181, allocations: 4 kB / 0.5704 GB, free: 9.047 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.5181, allocations: 0 / 0.5704 GB, free: 9.047 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003857/0.522, allocations: 1.758 MB / 0.5721 GB, free: 7.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.522, allocations: 12.06 kB / 0.5722 GB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.5221, allocations: 113.5 kB / 0.5723 GB, free: 7.852 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002723/0.5224, allocations: 125.5 kB / 0.5724 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.5229, allocations: 0.4966 MB / 0.5729 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.523, allocations: 59.16 kB / 0.5729 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.642e-05/0.523, allocations: 67.94 kB / 0.573 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.5248, allocations: 1.008 MB / 0.574 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.5249, allocations: 3.938 kB / 0.574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.5249, allocations: 33.34 kB / 0.574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.5249, allocations: 18.22 kB / 0.574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.527, allocations: 0.8897 MB / 0.5749 GB, free: 6.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003317/0.5303, allocations: 4.722 MB / 0.5795 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.5323, allocations: 0.8177 MB / 0.5803 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007386/0.533, allocations: 338.4 kB / 0.5806 GB, free: 2.535 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05554/0.5886, allocations: 32.3 MB / 0.6122 GB, free: 5.883 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.5903, allocations: 0.5614 MB / 0.6127 GB, free: 5.387 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 2.475e-06/0.5903, allocations: 0 / 0.6127 GB, free: 5.387 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.003553/0.5939, allocations: 1.204 MB / 0.6139 GB, free: 4.363 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.5939, allocations: 96.48 kB / 0.614 GB, free: 4.254 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000626/0.5946, allocations: 0.5589 MB / 0.6145 GB, free: 3.812 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.5946, allocations: 36.89 kB / 0.6146 GB, free: 3.777 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.5949, allocations: 374.6 kB / 0.6149 GB, free: 3.535 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.595, allocations: 140.2 kB / 0.6151 GB, free: 3.422 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.5951, allocations: 8.812 kB / 0.6151 GB, free: 3.422 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5952, allocations: 375.6 kB / 0.6154 GB, free: 3.074 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008209/0.5961, allocations: 314.4 kB / 0.6157 GB, free: 2.824 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008462/0.5969, allocations: 408.7 kB / 0.6161 GB, free: 2.453 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008838/0.5978, allocations: 427.7 kB / 0.6165 GB, free: 2.078 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.5978, allocations: 0 / 0.6165 GB, free: 2.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002092/0.5999, allocations: 0.946 MB / 0.6174 GB, free: 1.246 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.6001, allocations: 274.2 kB / 0.6177 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.6001, allocations: 4 kB / 0.6177 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.6002, allocations: 11.95 kB / 0.6177 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.6008, allocations: 166.1 kB / 0.6179 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.6008, allocations: 4 kB / 0.6179 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008867/0.6017, allocations: 173.4 kB / 0.618 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/0.6018, allocations: 31.23 kB / 0.6181 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.911e-06/0.6018, allocations: 0 / 0.6181 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001777/0.6036, allocations: 0.8549 MB / 0.6189 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.6036, allocations: 0 / 0.6189 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.6036, allocations: 8 kB / 0.6189 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.6042, allocations: 157.9 kB / 0.6191 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.6042, allocations: 4 kB / 0.6191 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007437/0.6049, allocations: 173.2 kB / 0.6192 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.605, allocations: 23.31 kB / 0.6193 GB, free: 15.49 MB / 462.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.0005191/0.6055, allocations: 284 kB / 0.6195 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.6056, allocations: 71.16 kB / 0.6196 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003085/0.6087, allocations: 1.924 MB / 0.6215 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.6087, allocations: 26.89 kB / 0.6215 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.6088, allocations: 0 / 0.6215 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.6088, allocations: 6.844 kB / 0.6215 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.6117, allocations: 2.031 MB / 0.6235 GB, free: 12.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.6117, allocations: 4.031 kB / 0.6235 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.6123, allocations: 140 kB / 0.6236 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.6123, allocations: 4 kB / 0.6236 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.6123, allocations: 11.31 kB / 0.6236 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.6123, allocations: 0 / 0.6236 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.6123, allocations: 0 / 0.6236 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.6147, allocations: 1.276 MB / 0.6249 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.6151, allocations: 228.3 kB / 0.6251 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/0.6152, allocations: 11.42 kB / 0.6251 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006798/0.6159, allocations: 141.4 kB / 0.6253 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.6162, allocations: 77.75 kB / 0.6253 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002343/0.6164, allocations: 17.05 kB / 0.6253 GB, free: 10.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004639/0.6169, allocations: 395.8 kB / 0.6257 GB, free: 10.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6169, allocations: 0 / 0.6257 GB, free: 10.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004533/0.6214, allocations: 1.121 MB / 0.6268 GB, free: 9.391 MB / 462.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.007811/0.6292, allocations: 2.718 MB / 0.6295 GB, free: 7.016 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00444/0.6337, allocations: 1.681 MB / 0.6311 GB, free: 5.504 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.6338, allocations: 0 / 0.6311 GB, free: 5.504 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.6356, allocations: 0.6135 MB / 0.6317 GB, free: 5.098 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00291/0.6386, allocations: 359.7 kB / 0.6321 GB, free: 4.805 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.6541, allocations: 5.16 MB / 0.6371 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009635/0.6551, allocations: 1.012 MB / 0.6381 GB, free: 15.29 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.6568, allocations: 380.6 kB / 0.6384 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007708/0.6576, allocations: 352.4 kB / 0.6388 GB, free: 14.83 MB / 478.1 MB Notification: Performance of SimCode: time 1.863e-06/0.6577, allocations: 0 / 0.6388 GB, free: 14.83 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1418/0.7995, allocations: 49.19 MB / 0.6868 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.7998, allocations: 182.5 kB / 0.687 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.327/5.127, allocations: 4 kB / 0.687 GB, free: 13.39 MB / 0.5137 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: