Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSources.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.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",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.001424/0.001424, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001535/0.001535, allocations: 191 kB / 18 MB, free: 5.09 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.471/1.471, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3007/0.3007, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.001459/0.001459, allocations: 75.89 kB / 450 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 59.15 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:297:5-297:61:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:297:5-297:61:writable] Notification: The diagnostics message for the missing inner is: The System object is missing, please drag it on the top layer of your model Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSources): time 0.4055/0.5325, allocations: 105.9 MB / 0.6007 GB, free: 488 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.5359, allocations: 0.9314 MB / 0.6016 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.5369, allocations: 19.81 kB / 0.6016 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.5379, allocations: 309.4 kB / 0.6019 GB, free: 15.22 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0012/0.5392, allocations: 437.1 kB / 0.6023 GB, free: 14.79 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01537/0.5545, allocations: 4.524 MB / 0.6067 GB, free: 10.25 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002075/0.5566, allocations: 1.323 MB / 0.608 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000651/0.5573, allocations: 470.8 kB / 0.6085 GB, free: 8.445 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005654/0.5579, allocations: 450.2 kB / 0.6089 GB, free: 8.004 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004803/0.5584, allocations: 433.8 kB / 0.6093 GB, free: 7.578 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.5584, allocations: 32 kB / 0.6093 GB, free: 7.547 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009242/0.5677, allocations: 4.405 MB / 0.6136 GB, free: 3.137 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.5679, allocations: 111.4 kB / 0.6137 GB, free: 3.027 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004974/0.5684, allocations: 361.9 kB / 0.6141 GB, free: 2.672 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007133/0.5755, allocations: 3.101 MB / 0.6171 GB, free: 15.56 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.5756, allocations: 4 kB / 0.6171 GB, free: 15.56 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5756, allocations: 0 / 0.6171 GB, free: 15.56 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.5756, allocations: 0 / 0.6171 GB, free: 15.56 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002716/0.5783, allocations: 1.317 MB / 0.6184 GB, free: 14.18 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.5784, allocations: 19.83 kB / 0.6184 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.5785, allocations: 86.7 kB / 0.6185 GB, free: 14.07 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.5787, allocations: 100.3 kB / 0.6186 GB, free: 13.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007243/0.5794, allocations: 0.4923 MB / 0.6191 GB, free: 13.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.5795, allocations: 44.92 kB / 0.6191 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.5796, allocations: 48 kB / 0.6192 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.5803, allocations: 0.6023 MB / 0.6198 GB, free: 12.63 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.5804, allocations: 4 kB / 0.6198 GB, free: 12.62 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.5804, allocations: 27.94 kB / 0.6198 GB, free: 12.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.5804, allocations: 16 kB / 0.6198 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003898/0.5808, allocations: 251.3 kB / 0.6201 GB, free: 12.34 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005297/0.5861, allocations: 7.086 MB / 0.627 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.5863, allocations: 173.1 kB / 0.6271 GB, free: 4.285 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.591e-05/0.5863, allocations: 84.39 kB / 0.6272 GB, free: 4.199 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.5863, allocations: 75.28 kB / 0.6273 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/0.5864, allocations: 113.8 kB / 0.6274 GB, free: 4.004 MB / 478.1 MB Notification: Performance of pre-optimization done (n=0): time 3.327e-06/0.5864, allocations: 0 / 0.6274 GB, free: 4.004 MB / 478.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001719/0.5866, allocations: 117 kB / 0.6275 GB, free: 3.883 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.5867, allocations: 134.7 kB / 0.6276 GB, free: 3.738 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009461/0.5876, allocations: 0.7764 MB / 0.6284 GB, free: 2.938 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.5876, allocations: 25.7 kB / 0.6284 GB, free: 2.906 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.588, allocations: 399.4 kB / 0.6288 GB, free: 2.512 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.376e-06/0.588, allocations: 0 / 0.6288 GB, free: 2.512 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.967e-05/0.588, allocations: 33.7 kB / 0.6288 GB, free: 2.473 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5882, allocations: 313.9 kB / 0.6291 GB, free: 2.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.796e-05/0.5882, allocations: 15.98 kB / 0.6291 GB, free: 2.145 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.5884, allocations: 90.23 kB / 0.6292 GB, free: 2.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.5885, allocations: 118.2 kB / 0.6293 GB, free: 1.867 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.5885, allocations: 0 / 0.6293 GB, free: 1.867 MB / 478.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003676/0.5889, allocations: 200.9 kB / 0.6295 GB, free: 1.664 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.589, allocations: 8.281 kB / 0.6295 GB, free: 1.656 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/0.589, allocations: 8 kB / 0.6296 GB, free: 1.648 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.589, allocations: 7.984 kB / 0.6296 GB, free: 1.641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.5891, allocations: 27.92 kB / 0.6296 GB, free: 1.613 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.5892, allocations: 4 kB / 0.6296 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.5894, allocations: 51.52 kB / 0.6296 GB, free: 1.559 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.5894, allocations: 8 kB / 0.6296 GB, free: 1.551 MB / 478.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.000205/0.5896, allocations: 237.7 kB / 0.6299 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.5898, allocations: 184.5 kB / 0.6301 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.5899, allocations: 175.6 kB / 0.6302 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.666e-05/0.59, allocations: 176.3 kB / 0.6304 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.688e-05/0.5901, allocations: 180.2 kB / 0.6306 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.26e-05/0.5902, allocations: 188.2 kB / 0.6307 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005863/0.5907, allocations: 0.6417 MB / 0.6314 GB, free: 15.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.336e-05/0.5908, allocations: 108.9 kB / 0.6315 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.002e-05/0.5909, allocations: 105 kB / 0.6316 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.79e-05/0.5909, allocations: 184.3 kB / 0.6317 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.04e-05/0.591, allocations: 180.2 kB / 0.6319 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.863e-05/0.5911, allocations: 176.3 kB / 0.6321 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.257e-05/0.5912, allocations: 196.2 kB / 0.6323 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.5914, allocations: 387.3 kB / 0.6326 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.5916, allocations: 249.5 kB / 0.6329 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.5918, allocations: 184.2 kB / 0.6331 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.592, allocations: 108.9 kB / 0.6332 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.834e-05/0.5921, allocations: 180.3 kB / 0.6333 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.5922, allocations: 104.9 kB / 0.6334 GB, free: 13.45 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006246/0.5928, allocations: 0.531 MB / 0.6339 GB, free: 12.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5928, allocations: 0 / 0.6339 GB, free: 12.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002522/0.5953, allocations: 0.7559 MB / 0.6347 GB, free: 12.15 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.003449/0.5988, allocations: 1.736 MB / 0.6364 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.599, allocations: 39.86 kB / 0.6364 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.599, allocations: 0.75 kB / 0.6364 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.113e-06/0.599, allocations: 4 kB / 0.6364 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.6015, allocations: 0.8848 MB / 0.6373 GB, free: 9.445 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/0.6075, allocations: 4.745 MB / 0.6419 GB, free: 4.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.608, allocations: 0.8897 MB / 0.6428 GB, free: 3.586 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003509/0.6084, allocations: 125.6 kB / 0.6429 GB, free: 3.461 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.6087, allocations: 255.3 kB / 0.6432 GB, free: 3.211 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6087, allocations: 0 / 0.6432 GB, free: 3.211 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06578/0.6745, allocations: 34 MB / 0.6764 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.626/10.3, allocations: 7.984 kB / 0.6764 GB, free: 1.086 MB / 0.5137 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSources.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestSources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ThermoPower_ThermoPower_Test_WaterComponents_TestSources.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe 2>&1)