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.0009352/0.0009355, allocations: 112.7 kB / 16.63 MB, free: 6.816 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.0009236/0.0009237, allocations: 189.8 kB / 17.55 MB, free: 5.926 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.137/1.137, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2394/0.2394, allocations: 48.84 MB / 319.6 MB, free: 11.29 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.001351/0.001351, allocations: 71.52 kB / 389.6 MB, free: 48.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07806/0.07942, allocations: 59.16 MB / 448.8 MB, free: 10.05 MB / 334.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.38/0.4595, allocations: 105 MB / 0.5408 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.4614, allocations: 1.055 MB / 0.5419 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000342/0.4618, allocations: 31.03 kB / 0.5419 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006369/0.4624, allocations: 242 kB / 0.5421 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006425/0.4631, allocations: 412.8 kB / 0.5425 GB, free: 3.598 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00886/0.4719, allocations: 4.093 MB / 0.5465 GB, free: 3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.4732, allocations: 1.33 MB / 0.5478 GB, free: 2.668 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.4737, allocations: 450.2 kB / 0.5482 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.4741, allocations: 461.5 kB / 0.5487 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000374/0.4745, allocations: 431.4 kB / 0.5491 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.724e-05/0.4745, allocations: 34 kB / 0.5491 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006493/0.481, allocations: 4.326 MB / 0.5534 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.4812, allocations: 103.9 kB / 0.5535 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003494/0.4816, allocations: 360.5 kB / 0.5538 GB, free: 2.371 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00427/0.4858, allocations: 3.091 MB / 0.5568 GB, free: 2.121 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4859, allocations: 0 / 0.5568 GB, free: 2.121 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4859, allocations: 0 / 0.5568 GB, free: 2.121 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.4859, allocations: 3.938 kB / 0.5568 GB, free: 2.117 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.00134/0.4872, allocations: 1.285 MB / 0.5581 GB, free: 1.328 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.4873, allocations: 15.11 kB / 0.5581 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.4873, allocations: 92.78 kB / 0.5582 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.276e-05/0.4874, allocations: 88.66 kB / 0.5583 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004082/0.4878, allocations: 481.3 kB / 0.5587 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.4879, allocations: 40.09 kB / 0.5588 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.4879, allocations: 49.5 kB / 0.5588 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/0.4884, allocations: 0.6071 MB / 0.5594 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.4885, allocations: 6.531 kB / 0.5594 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.4885, allocations: 23.19 kB / 0.5594 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.4885, allocations: 16.53 kB / 0.5594 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.4888, allocations: 247.8 kB / 0.5597 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.4925, allocations: 7.084 MB / 0.5666 GB, free: 9.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.508e-05/0.4926, allocations: 172.4 kB / 0.5668 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.448e-05/0.4926, allocations: 80.14 kB / 0.5668 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.4926, allocations: 81.66 kB / 0.5669 GB, free: 9.547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4927, allocations: 113.8 kB / 0.567 GB, free: 9.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.4927, allocations: 0 / 0.567 GB, free: 9.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001247/0.4928, allocations: 104.3 kB / 0.5671 GB, free: 9.355 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.4929, allocations: 129.3 kB / 0.5672 GB, free: 9.219 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006638/0.4935, allocations: 0.7723 MB / 0.568 GB, free: 9.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.4936, allocations: 29.81 kB / 0.568 GB, free: 9.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.4938, allocations: 392.4 kB / 0.5684 GB, free: 8.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-06/0.4938, allocations: 0 / 0.5684 GB, free: 8.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.4938, allocations: 38.44 kB / 0.5684 GB, free: 8.891 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.4939, allocations: 315.1 kB / 0.5687 GB, free: 8.582 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.079e-05/0.494, allocations: 17.52 kB / 0.5688 GB, free: 8.582 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.69e-05/0.494, allocations: 90.22 kB / 0.5688 GB, free: 8.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/0.4941, allocations: 110.6 kB / 0.569 GB, free: 8.375 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4942, allocations: 7.031 kB / 0.569 GB, free: 8.371 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002579/0.4944, allocations: 197.2 kB / 0.5691 GB, free: 8.281 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.4944, allocations: 6.641 kB / 0.5692 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4945, allocations: 5.25 kB / 0.5692 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.4945, allocations: 2.156 kB / 0.5692 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.49e-05/0.4946, allocations: 26.69 kB / 0.5692 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.4946, allocations: 8.531 kB / 0.5692 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.4948, allocations: 50.16 kB / 0.5692 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.4948, allocations: 14.67 kB / 0.5693 GB, free: 8.234 MB / 430.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.0001597/0.4949, allocations: 238.9 kB / 0.5695 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.4951, allocations: 184.5 kB / 0.5697 GB, free: 7.887 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.465e-05/0.4952, allocations: 171.4 kB / 0.5698 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.395e-05/0.4952, allocations: 186.5 kB / 0.57 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.373e-05/0.4953, allocations: 180.2 kB / 0.5702 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.116e-05/0.4953, allocations: 176.3 kB / 0.5703 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/0.4957, allocations: 0.6471 MB / 0.571 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-05/0.4958, allocations: 104.9 kB / 0.5711 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.625e-05/0.4958, allocations: 102.2 kB / 0.5712 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.387e-05/0.4958, allocations: 190.2 kB / 0.5714 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.4959, allocations: 180.2 kB / 0.5715 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-05/0.496, allocations: 180.9 kB / 0.5717 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.777e-05/0.496, allocations: 180.2 kB / 0.5719 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.4962, allocations: 394.9 kB / 0.5722 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.4963, allocations: 246.1 kB / 0.5725 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.4965, allocations: 181.4 kB / 0.5727 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.4966, allocations: 104.9 kB / 0.5728 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.4967, allocations: 181.7 kB / 0.5729 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.702e-05/0.4967, allocations: 107 kB / 0.573 GB, free: 4.641 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004408/0.4972, allocations: 0.5352 MB / 0.5736 GB, free: 4.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4972, allocations: 0 / 0.5736 GB, free: 4.527 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001475/0.4987, allocations: 0.7496 MB / 0.5743 GB, free: 4.418 MB / 430.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.002271/0.5009, allocations: 1.711 MB / 0.576 GB, free: 3.422 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.838e-05/0.5011, allocations: 44.11 kB / 0.576 GB, free: 3.414 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5011, allocations: 0 / 0.576 GB, free: 3.414 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.507e-06/0.5011, allocations: 2.438 kB / 0.576 GB, free: 3.414 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.5031, allocations: 0.8925 MB / 0.5769 GB, free: 2.875 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.5077, allocations: 5.136 MB / 0.5819 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.5081, allocations: 0.8795 MB / 0.5827 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003302/0.5084, allocations: 125.4 kB / 0.5829 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.5086, allocations: 257.8 kB / 0.5831 GB, free: 15.42 MB / 446.1 MB Notification: Performance of SimCode: time 2.084e-06/0.5087, allocations: 0 / 0.5831 GB, free: 15.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04824/0.5569, allocations: 33.76 MB / 0.6161 GB, free: 14.43 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001616/0.5571, allocations: 187.8 kB / 0.6163 GB, free: 14.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/2.994, allocations: 4.062 kB / 0.6163 GB, free: 14.18 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSources.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe 2>&1)