Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.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.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",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.001276/0.001276, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001259/0.001259, allocations: 198.8 kB / 18.01 MB, free: 5.047 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.372/1.372, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2736/0.2736, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001404/0.001404, allocations: 71.91 kB / 450.1 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 59.15 MB / 0.4973 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.3195/0.4251, allocations: 107.3 MB / 0.6021 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.4398, allocations: 11.56 MB / 0.6134 GB, free: 2.355 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009424/0.4408, allocations: 21.84 kB / 0.6134 GB, free: 2.348 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.4428, allocations: 0.553 MB / 0.6139 GB, free: 1.863 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.4445, allocations: 0.6317 MB / 0.6145 GB, free: 1.332 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01479/0.4593, allocations: 5.662 MB / 0.6201 GB, free: 12.5 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002326/0.4616, allocations: 1.646 MB / 0.6217 GB, free: 10.85 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.4627, allocations: 0.6398 MB / 0.6223 GB, free: 10.21 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.4637, allocations: 0.6499 MB / 0.6229 GB, free: 9.555 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008034/0.4645, allocations: 0.6302 MB / 0.6236 GB, free: 8.922 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.4646, allocations: 64 kB / 0.6236 GB, free: 8.859 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01158/0.4762, allocations: 6.435 MB / 0.6299 GB, free: 2.418 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002573/0.4765, allocations: 163.4 kB / 0.6301 GB, free: 2.258 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005667/0.4771, allocations: 430 kB / 0.6305 GB, free: 1.836 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009367/0.4865, allocations: 4.31 MB / 0.6347 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4865, allocations: 0 / 0.6347 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4865, allocations: 0 / 0.6347 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.4865, allocations: 0 / 0.6347 GB, free: 13.52 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.004299/0.4909, allocations: 1.586 MB / 0.6362 GB, free: 11.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.4909, allocations: 11.89 kB / 0.6362 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.4911, allocations: 110.7 kB / 0.6363 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.4914, allocations: 120.3 kB / 0.6365 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008558/0.4923, allocations: 490.5 kB / 0.6369 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.4924, allocations: 49.69 kB / 0.637 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.34e-05/0.4924, allocations: 68.36 kB / 0.637 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.4941, allocations: 0.8139 MB / 0.6378 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.4942, allocations: 0 / 0.6378 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.254e-05/0.4942, allocations: 28 kB / 0.6379 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.4943, allocations: 16 kB / 0.6379 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.4958, allocations: 0.5866 MB / 0.6384 GB, free: 9.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.4999, allocations: 4.403 MB / 0.6427 GB, free: 4.637 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.5013, allocations: 492.7 kB / 0.6432 GB, free: 4.137 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/0.5017, allocations: 177.6 kB / 0.6434 GB, free: 3.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06588/0.5676, allocations: 32.13 MB / 0.6748 GB, free: 16 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.5677, allocations: 42.48 kB / 0.6748 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=32): time 2.495e-06/0.5677, allocations: 0 / 0.6748 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=32): time 0.002539/0.5702, allocations: 0.702 MB / 0.6755 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.5703, allocations: 81.11 kB / 0.6756 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006863/0.571, allocations: 467 kB / 0.676 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.896e-05/0.5711, allocations: 29.7 kB / 0.676 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.5714, allocations: 340.3 kB / 0.6764 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.5715, allocations: 118.9 kB / 0.6765 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.5716, allocations: 74 kB / 0.6766 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5718, allocations: 366.8 kB / 0.6769 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.5722, allocations: 130.1 kB / 0.677 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.5726, allocations: 215.2 kB / 0.6772 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000722/0.5733, allocations: 326.1 kB / 0.6775 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5733, allocations: 4 kB / 0.6775 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001023/0.5743, allocations: 432.8 kB / 0.678 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.5744, allocations: 8 kB / 0.678 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.5744, allocations: 7.875 kB / 0.678 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.5744, allocations: 4 kB / 0.678 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.5749, allocations: 87.88 kB / 0.6781 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.5749, allocations: 7.938 kB / 0.6781 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.5753, allocations: 47.97 kB / 0.6781 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/0.5754, allocations: 19.98 kB / 0.6781 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004071/0.5758, allocations: 221.6 kB / 0.6783 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002799/0.5761, allocations: 187.4 kB / 0.6785 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005387/0.5766, allocations: 302.8 kB / 0.6788 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.005e-06/0.5767, allocations: 4 kB / 0.6788 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0007282/0.5774, allocations: 371.1 kB / 0.6792 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.5774, allocations: 8.25 kB / 0.6792 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.5774, allocations: 8 kB / 0.6792 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.5774, allocations: 12.8 kB / 0.6792 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.5778, allocations: 87.83 kB / 0.6793 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.5778, allocations: 7.984 kB / 0.6793 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.5781, allocations: 31.78 kB / 0.6793 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.5781, allocations: 19.98 kB / 0.6793 GB, free: 11.09 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001664/0.5783, allocations: 204.2 kB / 0.6795 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.5784, allocations: 67.62 kB / 0.6796 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.5805, allocations: 1.562 MB / 0.6811 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/0.5805, allocations: 23.97 kB / 0.6811 GB, free: 9.227 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.5805, allocations: 0.5 kB / 0.6811 GB, free: 9.227 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.5805, allocations: 3.984 kB / 0.6812 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.5818, allocations: 0.9793 MB / 0.6821 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.5818, allocations: 6.672 kB / 0.6821 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003525/0.5822, allocations: 71.89 kB / 0.6822 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.5822, allocations: 4 kB / 0.6822 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.5822, allocations: 7.938 kB / 0.6822 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.5822, allocations: 4 kB / 0.6822 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5822, allocations: 0 / 0.6822 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.5836, allocations: 0.9927 MB / 0.6832 GB, free: 7.098 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.5839, allocations: 200.2 kB / 0.6834 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.584, allocations: 11.94 kB / 0.6834 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.5844, allocations: 15.98 kB / 0.6834 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.5845, allocations: 39.95 kB / 0.6834 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.5845, allocations: 11.98 kB / 0.6834 GB, free: 6.805 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003611/0.5849, allocations: 326.9 kB / 0.6837 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5849, allocations: 4 kB / 0.6838 GB, free: 6.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002888/0.5878, allocations: 1.068 MB / 0.6848 GB, free: 5.41 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0056/0.5934, allocations: 2.432 MB / 0.6872 GB, free: 2.953 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001469/0.5949, allocations: 0.6606 MB / 0.6878 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5949, allocations: 3.938 kB / 0.6878 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.5956, allocations: 416.9 kB / 0.6882 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.5975, allocations: 310.7 kB / 0.6885 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008862/0.6064, allocations: 5.165 MB / 0.6936 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005804/0.607, allocations: 0.979 MB / 0.6945 GB, free: 11.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007819/0.6078, allocations: 387.7 kB / 0.6949 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.6082, allocations: 303.3 kB / 0.6952 GB, free: 10.59 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/0.6082, allocations: 0 / 0.6952 GB, free: 10.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09074/0.699, allocations: 46.35 MB / 0.7404 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.79, allocations: 4 kB / 0.7404 GB, free: 12.1 MB / 0.5919 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestJoin_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ThermoPower_ThermoPower_Test_WaterComponents_TestJoin.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe 2>&1)