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.001369/0.001369, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00138/0.00138, allocations: 195 kB / 18 MB, free: 5.074 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.623/1.623, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3005/0.3005, allocations: 48.84 MB / 320.1 MB, free: 11.03 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.001458/0.001458, allocations: 75.89 kB / 450 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1394, allocations: 59.16 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.4046/0.5441, allocations: 107.3 MB / 0.6021 GB, free: 11.78 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.5609, allocations: 11.56 MB / 0.6134 GB, free: 2.391 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.5623, allocations: 19.22 kB / 0.6134 GB, free: 2.383 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.5645, allocations: 0.5644 MB / 0.6139 GB, free: 1.891 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.5667, allocations: 0.6221 MB / 0.6145 GB, free: 1.367 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01851/0.5852, allocations: 5.674 MB / 0.6201 GB, free: 12.56 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003416/0.5887, allocations: 1.65 MB / 0.6217 GB, free: 10.91 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.5903, allocations: 0.6337 MB / 0.6223 GB, free: 10.27 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.5919, allocations: 0.6539 MB / 0.6229 GB, free: 9.609 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001248/0.5932, allocations: 0.6263 MB / 0.6236 GB, free: 8.98 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002322/0.5934, allocations: 68 kB / 0.6236 GB, free: 8.914 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01447/0.6079, allocations: 6.433 MB / 0.6299 GB, free: 2.477 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003871/0.6083, allocations: 163.4 kB / 0.6301 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009875/0.6093, allocations: 422 kB / 0.6305 GB, free: 1.902 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.6204, allocations: 4.314 MB / 0.6347 GB, free: 13.58 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.6205, allocations: 0 / 0.6347 GB, free: 13.58 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6205, allocations: 4 kB / 0.6347 GB, free: 13.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.486e-05/0.6205, allocations: 4 kB / 0.6347 GB, free: 13.57 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.004581/0.6251, allocations: 1.583 MB / 0.6362 GB, free: 11.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.6252, allocations: 11.89 kB / 0.6362 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.6253, allocations: 106.7 kB / 0.6363 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004028/0.6257, allocations: 116.4 kB / 0.6365 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008346/0.6266, allocations: 497.8 kB / 0.6369 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.766e-05/0.6266, allocations: 45.69 kB / 0.637 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.85e-05/0.6267, allocations: 68.36 kB / 0.637 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.6284, allocations: 0.814 MB / 0.6378 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.6284, allocations: 0 / 0.6378 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.6285, allocations: 28 kB / 0.6379 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.6285, allocations: 16 kB / 0.6379 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.6301, allocations: 0.5866 MB / 0.6384 GB, free: 9.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004134/0.6343, allocations: 4.402 MB / 0.6427 GB, free: 4.699 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.6357, allocations: 492.7 kB / 0.6432 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.6361, allocations: 181.6 kB / 0.6434 GB, free: 4.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06664/0.7028, allocations: 32.13 MB / 0.6748 GB, free: 68 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.7029, allocations: 44 kB / 0.6748 GB, free: 16 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 2.445e-06/0.7029, allocations: 0 / 0.6748 GB, free: 16 kB / 0.5137 GB Notification: Performance of matching and sorting (n=32): time 0.002479/0.7054, allocations: 0.7019 MB / 0.6755 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.7055, allocations: 89.05 kB / 0.6756 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006953/0.7062, allocations: 471 kB / 0.676 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.7062, allocations: 33.7 kB / 0.6761 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.7065, allocations: 332.3 kB / 0.6764 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.7066, allocations: 126.9 kB / 0.6765 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.7067, allocations: 66.02 kB / 0.6766 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.7069, allocations: 366.8 kB / 0.6769 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.7073, allocations: 142 kB / 0.677 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.7077, allocations: 197.8 kB / 0.6772 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/0.7084, allocations: 337.4 kB / 0.6776 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7084, allocations: 0 / 0.6776 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009915/0.7094, allocations: 425.1 kB / 0.678 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.7094, allocations: 15.91 kB / 0.678 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.7094, allocations: 7.922 kB / 0.678 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.241e-05/0.7095, allocations: 4 kB / 0.678 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/0.7099, allocations: 87.88 kB / 0.6781 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.71, allocations: 7.938 kB / 0.6781 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.7103, allocations: 43.72 kB / 0.6781 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.7104, allocations: 17.25 kB / 0.6781 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003704/0.7108, allocations: 225.4 kB / 0.6783 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002614/0.711, allocations: 183.4 kB / 0.6785 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005/0.7116, allocations: 306.9 kB / 0.6788 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.374e-06/0.7116, allocations: 0 / 0.6788 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0007245/0.7123, allocations: 385.1 kB / 0.6792 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.7123, allocations: 4 kB / 0.6792 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.7123, allocations: 7.984 kB / 0.6792 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.955e-06/0.7124, allocations: 7.938 kB / 0.6792 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.7127, allocations: 92.17 kB / 0.6793 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.7127, allocations: 4 kB / 0.6793 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.713, allocations: 35.77 kB / 0.6793 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.713, allocations: 19.98 kB / 0.6793 GB, free: 11.14 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.0001599/0.7132, allocations: 200.1 kB / 0.6795 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.7133, allocations: 63.62 kB / 0.6796 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.7152, allocations: 1.566 MB / 0.6811 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/0.7153, allocations: 19.97 kB / 0.6811 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.7153, allocations: 0.875 kB / 0.6811 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.7153, allocations: 3.984 kB / 0.6812 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.7165, allocations: 0.9832 MB / 0.6821 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.7165, allocations: 0 / 0.6821 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.7168, allocations: 67.88 kB / 0.6822 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.7169, allocations: 4 kB / 0.6822 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.7169, allocations: 21.62 kB / 0.6822 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.86e-06/0.7169, allocations: 4 kB / 0.6822 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.7169, allocations: 0 / 0.6822 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.7182, allocations: 0.9888 MB / 0.6832 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.7184, allocations: 196.2 kB / 0.6834 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.7185, allocations: 15.92 kB / 0.6834 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.7189, allocations: 15.98 kB / 0.6834 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.719, allocations: 39.95 kB / 0.6834 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.719, allocations: 15.98 kB / 0.6834 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003248/0.7193, allocations: 322.9 kB / 0.6838 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/0.7194, allocations: 0 / 0.6838 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002751/0.7221, allocations: 1.072 MB / 0.6848 GB, free: 5.465 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.005824/0.7279, allocations: 2.433 MB / 0.6872 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001402/0.7294, allocations: 0.6532 MB / 0.6878 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.7294, allocations: 4.062 kB / 0.6878 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0006041/0.73, allocations: 412.9 kB / 0.6882 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.7318, allocations: 312.4 kB / 0.6885 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009046/0.7408, allocations: 5.165 MB / 0.6936 GB, free: 12.33 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/0.7415, allocations: 0.979 MB / 0.6945 GB, free: 11.33 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007982/0.7424, allocations: 379.8 kB / 0.6949 GB, free: 10.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/0.7428, allocations: 311.3 kB / 0.6952 GB, free: 10.65 MB / 0.545 GB Notification: Performance of SimCode: time 5.41e-07/0.7428, allocations: 0 / 0.6952 GB, free: 10.65 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08453/0.8274, allocations: 46.35 MB / 0.7404 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.5, allocations: 12 kB / 0.7404 GB, free: 12.16 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)