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.00124/0.00124, allocations: 106.4 kB / 16.92 MB, free: 5.855 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.001214/0.001214, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.23/1.23, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2588/0.2588, allocations: 48.84 MB / 319.9 MB, free: 11.11 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.001442/0.001442, allocations: 70.91 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.0904, allocations: 59.16 MB / 449.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.2826/0.3731, allocations: 107.3 MB / 0.5436 GB, free: 5.223 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.3843, allocations: 11.57 MB / 0.5549 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007614/0.3851, allocations: 24.03 kB / 0.5549 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.3863, allocations: 0.5541 MB / 0.5555 GB, free: 5.027 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.3874, allocations: 0.6188 MB / 0.5561 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01384/0.4013, allocations: 5.652 MB / 0.5616 GB, free: 4.855 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002138/0.4034, allocations: 1.655 MB / 0.5632 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008898/0.4043, allocations: 0.6375 MB / 0.5638 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009564/0.4053, allocations: 0.633 MB / 0.5644 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006958/0.406, allocations: 0.6297 MB / 0.5651 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.4061, allocations: 65.81 kB / 0.5651 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01272/0.4188, allocations: 6.294 MB / 0.5713 GB, free: 4.418 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003261/0.4192, allocations: 162.5 kB / 0.5714 GB, free: 4.359 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009774/0.4202, allocations: 429 kB / 0.5718 GB, free: 4.215 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.4302, allocations: 4.294 MB / 0.576 GB, free: 2.496 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4302, allocations: 2.531 kB / 0.576 GB, free: 2.496 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4302, allocations: 0 / 0.576 GB, free: 2.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.4303, allocations: 0 / 0.576 GB, free: 2.496 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.003137/0.4334, allocations: 1.545 MB / 0.5775 GB, free: 1.543 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.4335, allocations: 13.73 kB / 0.5775 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.4335, allocations: 108 kB / 0.5776 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.4338, allocations: 111.5 kB / 0.5778 GB, free: 1.438 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.4342, allocations: 475.8 kB / 0.5782 GB, free: 1.102 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4343, allocations: 49.25 kB / 0.5783 GB, free: 1.102 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.4343, allocations: 59.5 kB / 0.5783 GB, free: 1.102 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.4356, allocations: 0.818 MB / 0.5791 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.4356, allocations: 3.25 kB / 0.5791 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.4357, allocations: 23.91 kB / 0.5791 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.4357, allocations: 16.44 kB / 0.5792 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.4369, allocations: 0.5914 MB / 0.5797 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00327/0.4402, allocations: 4.423 MB / 0.584 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.4414, allocations: 0.4905 MB / 0.5845 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.4417, allocations: 185.5 kB / 0.5847 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06205/0.5038, allocations: 31.97 MB / 0.6159 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/0.5039, allocations: 36.73 kB / 0.616 GB, free: 13.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=32): time 2.495e-06/0.5039, allocations: 7.938 kB / 0.616 GB, free: 13.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=32): time 0.002367/0.5063, allocations: 0.6935 MB / 0.6166 GB, free: 13.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.5064, allocations: 89.03 kB / 0.6167 GB, free: 13.19 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.5069, allocations: 470.2 kB / 0.6172 GB, free: 12.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.507, allocations: 32.83 kB / 0.6172 GB, free: 12.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.5072, allocations: 341.5 kB / 0.6175 GB, free: 12.56 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.5073, allocations: 111 kB / 0.6176 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.5074, allocations: 77.23 kB / 0.6177 GB, free: 12.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5076, allocations: 368.1 kB / 0.6181 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.5079, allocations: 133.4 kB / 0.6182 GB, free: 11.97 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.5083, allocations: 200.2 kB / 0.6184 GB, free: 11.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006787/0.509, allocations: 329.3 kB / 0.6187 GB, free: 11.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.509, allocations: 1.812 kB / 0.6187 GB, free: 11.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009093/0.51, allocations: 438.9 kB / 0.6191 GB, free: 11.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.51, allocations: 4 kB / 0.6191 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.51, allocations: 7.938 kB / 0.6191 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.51, allocations: 4 kB / 0.6191 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/0.5105, allocations: 85.62 kB / 0.6192 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.5105, allocations: 4 kB / 0.6192 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.5109, allocations: 44.77 kB / 0.6193 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.5109, allocations: 23.42 kB / 0.6193 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003757/0.5113, allocations: 225 kB / 0.6195 GB, free: 10.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002685/0.5116, allocations: 187 kB / 0.6197 GB, free: 10.61 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004843/0.5121, allocations: 303.1 kB / 0.62 GB, free: 10.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/0.5121, allocations: 4 kB / 0.62 GB, free: 10.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0006536/0.5128, allocations: 364.7 kB / 0.6203 GB, free: 9.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5128, allocations: 8 kB / 0.6203 GB, free: 9.902 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5128, allocations: 4.344 kB / 0.6203 GB, free: 9.898 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.5128, allocations: 11.94 kB / 0.6203 GB, free: 9.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.5131, allocations: 79.89 kB / 0.6204 GB, free: 9.809 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.5131, allocations: 11.92 kB / 0.6204 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.5134, allocations: 31.75 kB / 0.6205 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.5134, allocations: 18.67 kB / 0.6205 GB, free: 9.75 MB / 462.1 MB 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.0001593/0.5136, allocations: 204.1 kB / 0.6207 GB, free: 9.543 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.5137, allocations: 55.34 kB / 0.6207 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/0.5155, allocations: 1.576 MB / 0.6223 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/0.5156, allocations: 23.97 kB / 0.6223 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5156, allocations: 4 kB / 0.6223 GB, free: 7.875 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5156, allocations: 3.984 kB / 0.6223 GB, free: 7.871 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.5166, allocations: 0.9767 MB / 0.6232 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.5166, allocations: 0 / 0.6232 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000337/0.517, allocations: 71.88 kB / 0.6233 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.517, allocations: 0 / 0.6233 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.517, allocations: 11.94 kB / 0.6233 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.517, allocations: 0 / 0.6233 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.517, allocations: 7.938 kB / 0.6233 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.5182, allocations: 0.9942 MB / 0.6243 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.5185, allocations: 199.8 kB / 0.6245 GB, free: 5.543 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.356e-05/0.5185, allocations: 11.94 kB / 0.6245 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5188, allocations: 15.98 kB / 0.6245 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5189, allocations: 43.95 kB / 0.6246 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.519, allocations: 11.98 kB / 0.6246 GB, free: 5.461 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003155/0.5193, allocations: 326.9 kB / 0.6249 GB, free: 5.141 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5193, allocations: 0 / 0.6249 GB, free: 5.141 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002806/0.5221, allocations: 1.057 MB / 0.6259 GB, free: 4.082 MB / 462.1 MB 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.005879/0.528, allocations: 2.406 MB / 0.6283 GB, free: 1.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.5295, allocations: 0.681 MB / 0.6289 GB, free: 1.055 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5295, allocations: 1.188 kB / 0.6289 GB, free: 1.055 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006195/0.5302, allocations: 422.1 kB / 0.6293 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.5321, allocations: 320.9 kB / 0.6296 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008807/0.5409, allocations: 5.236 MB / 0.6348 GB, free: 10.97 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.5415, allocations: 0.9827 MB / 0.6357 GB, free: 9.965 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007073/0.5422, allocations: 387.7 kB / 0.6361 GB, free: 9.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/0.5426, allocations: 307.3 kB / 0.6364 GB, free: 9.281 MB / 478.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5426, allocations: 0 / 0.6364 GB, free: 9.281 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07651/0.6191, allocations: 46.26 MB / 0.6816 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.013/9.632, allocations: 0 / 0.6816 GB, free: 10.9 MB / 0.5137 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)