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.001072/0.001072, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001055/0.001055, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.084/1.084, allocations: 205.1 MB / 223.3 MB, free: 12.42 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2225/0.2225, allocations: 48.85 MB / 319.4 MB, free: 11.31 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.00128/0.00128, allocations: 63.06 kB / 389.5 MB, free: 48.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07177/0.07306, allocations: 59.17 MB / 448.6 MB, free: 10.16 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.3777/0.4508, allocations: 105.9 MB / 0.5416 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.4527, allocations: 1.056 MB / 0.5426 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002952/0.453, allocations: 28.28 kB / 0.5426 GB, free: 4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005554/0.4536, allocations: 237.4 kB / 0.5429 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005195/0.4541, allocations: 420 kB / 0.5433 GB, free: 3.789 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007915/0.4621, allocations: 3.853 MB / 0.547 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.4634, allocations: 1.803 MB / 0.5488 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.4638, allocations: 408 kB / 0.5492 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.4641, allocations: 405.1 kB / 0.5496 GB, free: 2.785 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.4645, allocations: 439 kB / 0.55 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.4645, allocations: 28.06 kB / 0.55 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006053/0.4706, allocations: 4.31 MB / 0.5542 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.4707, allocations: 99.48 kB / 0.5543 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.4709, allocations: 353.4 kB / 0.5546 GB, free: 2.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003129/0.4741, allocations: 3.067 MB / 0.5576 GB, free: 2.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4741, allocations: 5.594 kB / 0.5576 GB, free: 2.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.4741, allocations: 0 / 0.5576 GB, free: 2.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.4741, allocations: 0 / 0.5576 GB, free: 2.34 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.001221/0.4753, allocations: 1.279 MB / 0.5589 GB, free: 1.559 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.4754, allocations: 14.72 kB / 0.5589 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.4754, allocations: 86.19 kB / 0.559 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.683e-05/0.4755, allocations: 90.03 kB / 0.5591 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.4759, allocations: 493 kB / 0.5595 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.4759, allocations: 40.69 kB / 0.5596 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.817e-05/0.476, allocations: 51.81 kB / 0.5596 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.4765, allocations: 0.6048 MB / 0.5602 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.4765, allocations: 6.75 kB / 0.5602 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.4765, allocations: 25.97 kB / 0.5602 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4765, allocations: 12.41 kB / 0.5603 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.4768, allocations: 251.5 kB / 0.5605 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.4802, allocations: 7.077 MB / 0.5674 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.788e-05/0.4802, allocations: 176.6 kB / 0.5676 GB, free: 9.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.701e-05/0.4803, allocations: 80.14 kB / 0.5677 GB, free: 9.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4803, allocations: 79.28 kB / 0.5677 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.4803, allocations: 108.7 kB / 0.5678 GB, free: 9.656 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.4803, allocations: 2.562 kB / 0.5678 GB, free: 9.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001158/0.4805, allocations: 106.2 kB / 0.5679 GB, free: 9.582 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.4805, allocations: 126.7 kB / 0.5681 GB, free: 9.445 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006602/0.4812, allocations: 0.7765 MB / 0.5688 GB, free: 9.293 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/0.4812, allocations: 32.3 kB / 0.5688 GB, free: 9.262 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.4814, allocations: 385.5 kB / 0.5692 GB, free: 9.137 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-06/0.4814, allocations: 7.312 kB / 0.5692 GB, free: 9.133 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/0.4814, allocations: 39.67 kB / 0.5693 GB, free: 9.113 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.818e-05/0.4815, allocations: 313.6 kB / 0.5696 GB, free: 8.805 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.87e-05/0.4816, allocations: 15.05 kB / 0.5696 GB, free: 8.805 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.448e-05/0.4816, allocations: 88.94 kB / 0.5697 GB, free: 8.707 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.4817, allocations: 111.1 kB / 0.5698 GB, free: 8.598 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4818, allocations: 3.625 kB / 0.5698 GB, free: 8.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002441/0.482, allocations: 203.8 kB / 0.57 GB, free: 8.504 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.482, allocations: 7.188 kB / 0.57 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.482, allocations: 3.562 kB / 0.57 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.482, allocations: 3.812 kB / 0.57 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.4821, allocations: 24.06 kB / 0.57 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.4821, allocations: 6.5 kB / 0.57 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.4823, allocations: 55.88 kB / 0.5701 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.4824, allocations: 11.48 kB / 0.5701 GB, free: 8.457 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.0001468/0.4825, allocations: 233.9 kB / 0.5703 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/0.4826, allocations: 181.6 kB / 0.5705 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.945e-05/0.4827, allocations: 168.4 kB / 0.5706 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.925e-05/0.4827, allocations: 180.2 kB / 0.5708 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.733e-05/0.4828, allocations: 183.9 kB / 0.571 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.786e-05/0.4829, allocations: 185.4 kB / 0.5712 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003594/0.4832, allocations: 0.6449 MB / 0.5718 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.669e-05/0.4833, allocations: 103.4 kB / 0.5719 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.579e-05/0.4833, allocations: 104.9 kB / 0.572 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.673e-05/0.4833, allocations: 184.9 kB / 0.5722 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.4834, allocations: 184.3 kB / 0.5723 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-05/0.4834, allocations: 180.2 kB / 0.5725 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.062e-05/0.4835, allocations: 179.6 kB / 0.5727 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001553/0.4836, allocations: 391.7 kB / 0.573 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.4838, allocations: 251.5 kB / 0.5733 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4839, allocations: 186.7 kB / 0.5735 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.4841, allocations: 102.9 kB / 0.5736 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.4841, allocations: 183.9 kB / 0.5737 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.4842, allocations: 101 kB / 0.5738 GB, free: 4.875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004365/0.4846, allocations: 0.5322 MB / 0.5744 GB, free: 4.766 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4846, allocations: 4 kB / 0.5744 GB, free: 4.762 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001361/0.486, allocations: 0.7439 MB / 0.5751 GB, free: 4.652 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.002151/0.4881, allocations: 1.714 MB / 0.5768 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.134e-05/0.4882, allocations: 47.97 kB / 0.5768 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.4882, allocations: 2.812 kB / 0.5768 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.432e-06/0.4883, allocations: 2 kB / 0.5768 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001995/0.4902, allocations: 0.9494 MB / 0.5777 GB, free: 3.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.4949, allocations: 5.149 MB / 0.5828 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.4952, allocations: 0.8822 MB / 0.5836 GB, free: 14.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003061/0.4955, allocations: 120.3 kB / 0.5837 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4957, allocations: 255.2 kB / 0.584 GB, free: 14.62 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4957, allocations: 0 / 0.584 GB, free: 14.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.92/2.416, allocations: 33.29 MB / 0.6165 GB, free: 13.82 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/2.416, allocations: 183.7 kB / 0.6167 GB, free: 13.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.643/5.059, allocations: 3.938 kB / 0.6167 GB, free: 13.57 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)