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.0008014/0.0008014, allocations: 97.28 kB / 16.65 MB, free: 6.59 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.0008477/0.0008477, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.115/1.115, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2246/0.2246, allocations: 48.78 MB / 320.8 MB, free: 11.2 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.0004401/0.0004401, allocations: 13.48 kB / 391.9 MB, free: 50 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07335/0.0738, allocations: 60.27 MB / 452.2 MB, free: 9.109 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:186:5-186: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:186:5-186: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.3896/0.4634, allocations: 104.5 MB / 0.5436 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001876/0.4653, allocations: 1.053 MB / 0.5446 GB, free: 3.906 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.4656, allocations: 27.72 kB / 0.5446 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004912/0.4661, allocations: 235.1 kB / 0.5449 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005415/0.4667, allocations: 422.6 kB / 0.5453 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008181/0.4748, allocations: 3.844 MB / 0.549 GB, free: 3.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.4762, allocations: 1.808 MB / 0.5508 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000379/0.4766, allocations: 388.2 kB / 0.5512 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002935/0.4769, allocations: 386.5 kB / 0.5515 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.4772, allocations: 429.4 kB / 0.5519 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.4773, allocations: 16.03 kB / 0.552 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005775/0.4831, allocations: 4.311 MB / 0.5562 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.4831, allocations: 90.69 kB / 0.5562 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.4833, allocations: 356.2 kB / 0.5566 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.4859, allocations: 3.052 MB / 0.5596 GB, free: 2.391 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.4859, allocations: 2.344 kB / 0.5596 GB, free: 2.391 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4859, allocations: 0 / 0.5596 GB, free: 2.391 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.4859, allocations: 0 / 0.5596 GB, free: 2.391 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.001131/0.4871, allocations: 1.161 MB / 0.5607 GB, free: 1.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.4871, allocations: 10.53 kB / 0.5607 GB, free: 1.641 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.835e-05/0.4872, allocations: 87.31 kB / 0.5608 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.029e-05/0.4872, allocations: 97 kB / 0.5609 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.4876, allocations: 483.3 kB / 0.5614 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.4877, allocations: 35.69 kB / 0.5614 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.4877, allocations: 51.44 kB / 0.5614 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.4882, allocations: 0.6021 MB / 0.562 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4882, allocations: 6.531 kB / 0.562 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.4883, allocations: 29.53 kB / 0.5621 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4883, allocations: 12.78 kB / 0.5621 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002842/0.4886, allocations: 249.9 kB / 0.5623 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.4921, allocations: 7.082 MB / 0.5692 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.822e-05/0.4922, allocations: 171.5 kB / 0.5694 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.444e-05/0.4922, allocations: 84.3 kB / 0.5695 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.4923, allocations: 75.28 kB / 0.5695 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.4923, allocations: 105.8 kB / 0.5696 GB, free: 9.754 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.4923, allocations: 2.594 kB / 0.5696 GB, free: 9.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001187/0.4924, allocations: 110.6 kB / 0.5697 GB, free: 9.676 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.4925, allocations: 130.7 kB / 0.5699 GB, free: 9.535 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006673/0.4932, allocations: 0.7753 MB / 0.5706 GB, free: 9.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.4932, allocations: 28.22 kB / 0.5707 GB, free: 9.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.4934, allocations: 392.3 kB / 0.571 GB, free: 9.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-06/0.4934, allocations: 0 / 0.571 GB, free: 9.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.4934, allocations: 19.08 kB / 0.571 GB, free: 9.215 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.151e-05/0.4935, allocations: 317 kB / 0.5714 GB, free: 8.906 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.826e-05/0.4936, allocations: 12.69 kB / 0.5714 GB, free: 8.906 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.45e-05/0.4936, allocations: 95 kB / 0.5715 GB, free: 8.805 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.4938, allocations: 115.1 kB / 0.5716 GB, free: 8.691 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.4938, allocations: 0 / 0.5716 GB, free: 8.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002434/0.494, allocations: 196.5 kB / 0.5718 GB, free: 8.605 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.494, allocations: 6.812 kB / 0.5718 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.494, allocations: 2.688 kB / 0.5718 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.4941, allocations: 9.094 kB / 0.5718 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.058e-05/0.4942, allocations: 25.47 kB / 0.5718 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.4942, allocations: 7.609 kB / 0.5718 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.4943, allocations: 54.66 kB / 0.5719 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.4944, allocations: 11.81 kB / 0.5719 GB, free: 8.559 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.0001516/0.4945, allocations: 235.1 kB / 0.5721 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4946, allocations: 181.1 kB / 0.5723 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.824e-05/0.4947, allocations: 176.1 kB / 0.5724 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.315e-05/0.4948, allocations: 176.3 kB / 0.5726 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.518e-05/0.4948, allocations: 182 kB / 0.5728 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.325e-05/0.4949, allocations: 186.5 kB / 0.5729 GB, free: 7.547 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003838/0.4953, allocations: 0.648 MB / 0.5736 GB, free: 7.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/0.4953, allocations: 108.9 kB / 0.5737 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.681e-05/0.4954, allocations: 101 kB / 0.5738 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.178e-05/0.4954, allocations: 178.5 kB / 0.574 GB, free: 6.703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.4955, allocations: 184.3 kB / 0.5741 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-05/0.4955, allocations: 179.5 kB / 0.5743 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-05/0.4956, allocations: 182 kB / 0.5745 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001599/0.4958, allocations: 393.7 kB / 0.5748 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.4959, allocations: 257.6 kB / 0.5751 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.496, allocations: 183.3 kB / 0.5753 GB, free: 5.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.4962, allocations: 104.9 kB / 0.5754 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.4963, allocations: 181.1 kB / 0.5755 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.4963, allocations: 109.4 kB / 0.5756 GB, free: 4.973 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004584/0.4968, allocations: 0.5284 MB / 0.5762 GB, free: 4.863 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.4968, allocations: 0 / 0.5762 GB, free: 4.863 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001218/0.498, allocations: 0.7515 MB / 0.5769 GB, free: 4.754 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.002084/0.5001, allocations: 1.721 MB / 0.5786 GB, free: 3.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.569e-05/0.5002, allocations: 39.67 kB / 0.5786 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.5002, allocations: 2.844 kB / 0.5786 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.684e-06/0.5002, allocations: 2.719 kB / 0.5786 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.5024, allocations: 0.9443 MB / 0.5795 GB, free: 3.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.5069, allocations: 5.156 MB / 0.5846 GB, free: 0.625 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.5073, allocations: 0.8822 MB / 0.5854 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000295/0.5076, allocations: 125 kB / 0.5856 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.5078, allocations: 260.1 kB / 0.5858 GB, free: 15.87 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.5078, allocations: 0 / 0.5858 GB, free: 15.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.043/0.5508, allocations: 33.16 MB / 0.6182 GB, free: 15.82 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/0.551, allocations: 183 kB / 0.6184 GB, free: 15.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.338/2.889, allocations: 3.938 kB / 0.6184 GB, free: 15.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)