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.001114/0.001114, allocations: 105.9 kB / 16.94 MB, free: 5.688 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.001114/0.001114, allocations: 187.3 kB / 17.87 MB, free: 5.148 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.195/1.195, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2479/0.2479, allocations: 48.85 MB / 319.9 MB, free: 11.09 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.001412/0.001412, allocations: 72.45 kB / 390.2 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08528/0.08671, allocations: 59.15 MB / 449.4 MB, free: 9.656 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.4177/0.5044, allocations: 105.5 MB / 0.5419 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.5064, allocations: 0.9266 MB / 0.5428 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002724/0.5066, allocations: 23.03 kB / 0.5428 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005942/0.5072, allocations: 302.1 kB / 0.5431 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005979/0.5079, allocations: 445.4 kB / 0.5435 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009955/0.5178, allocations: 4.494 MB / 0.5479 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.5194, allocations: 1.31 MB / 0.5492 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004874/0.5199, allocations: 474 kB / 0.5496 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.5203, allocations: 455.7 kB / 0.5501 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/0.5207, allocations: 431 kB / 0.5505 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.5208, allocations: 33.59 kB / 0.5505 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007962/0.5287, allocations: 4.35 MB / 0.5548 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002989/0.5291, allocations: 109.6 kB / 0.5549 GB, free: 2.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005838/0.5297, allocations: 364.1 kB / 0.5552 GB, free: 2.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00582/0.5355, allocations: 3.09 MB / 0.5582 GB, free: 2.484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5355, allocations: 2.344 kB / 0.5582 GB, free: 2.484 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5355, allocations: 0 / 0.5582 GB, free: 2.484 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.5355, allocations: 3.047 kB / 0.5582 GB, free: 2.484 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.002023/0.5376, allocations: 1.283 MB / 0.5595 GB, free: 1.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.5376, allocations: 13.92 kB / 0.5595 GB, free: 1.691 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.375e-05/0.5377, allocations: 86.67 kB / 0.5596 GB, free: 1.652 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.5378, allocations: 97.28 kB / 0.5597 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005272/0.5384, allocations: 484.4 kB / 0.5602 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.5384, allocations: 38.12 kB / 0.5602 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.5385, allocations: 49.22 kB / 0.5602 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.5391, allocations: 0.6053 MB / 0.5608 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.5391, allocations: 6.781 kB / 0.5608 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.5391, allocations: 25.19 kB / 0.5609 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.5391, allocations: 13.84 kB / 0.5609 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.5395, allocations: 257.2 kB / 0.5611 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004356/0.5438, allocations: 7.082 MB / 0.568 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.04e-05/0.5439, allocations: 167 kB / 0.5682 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.852e-05/0.544, allocations: 83.08 kB / 0.5683 GB, free: 9.988 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.544, allocations: 81.62 kB / 0.5683 GB, free: 9.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.5441, allocations: 105.8 kB / 0.5684 GB, free: 9.797 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.473e-06/0.5441, allocations: 0 / 0.5684 GB, free: 9.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001775/0.5443, allocations: 109.4 kB / 0.5686 GB, free: 9.723 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.5443, allocations: 126.7 kB / 0.5687 GB, free: 9.586 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007806/0.5451, allocations: 0.7754 MB / 0.5694 GB, free: 9.438 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.5451, allocations: 28.84 kB / 0.5695 GB, free: 9.406 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.5453, allocations: 387.7 kB / 0.5698 GB, free: 9.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.127e-06/0.5454, allocations: 2.688 kB / 0.5698 GB, free: 9.281 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.126e-05/0.5454, allocations: 33.88 kB / 0.5699 GB, free: 9.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.5455, allocations: 318.2 kB / 0.5702 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.401e-05/0.5456, allocations: 16.25 kB / 0.5702 GB, free: 8.953 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.505e-05/0.5456, allocations: 88.08 kB / 0.5703 GB, free: 8.855 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.5458, allocations: 115.2 kB / 0.5704 GB, free: 8.742 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5458, allocations: 0 / 0.5704 GB, free: 8.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003224/0.5461, allocations: 205.3 kB / 0.5706 GB, free: 8.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.5461, allocations: 5.5 kB / 0.5706 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5462, allocations: 6.812 kB / 0.5706 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.5462, allocations: 2.531 kB / 0.5706 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.5463, allocations: 29.81 kB / 0.5706 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.5463, allocations: 9.578 kB / 0.5706 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.5465, allocations: 53.16 kB / 0.5707 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.5465, allocations: 7.656 kB / 0.5707 GB, free: 8.602 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.0001716/0.5467, allocations: 238.5 kB / 0.5709 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.5468, allocations: 175.9 kB / 0.5711 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.323e-05/0.5469, allocations: 167.9 kB / 0.5712 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.073e-05/0.547, allocations: 188 kB / 0.5714 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-05/0.5471, allocations: 184.4 kB / 0.5716 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.987e-05/0.5471, allocations: 181.8 kB / 0.5718 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.5475, allocations: 0.6451 MB / 0.5724 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.989e-05/0.5476, allocations: 101 kB / 0.5725 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.853e-05/0.5476, allocations: 108.6 kB / 0.5726 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.893e-05/0.5477, allocations: 184.2 kB / 0.5728 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.846e-05/0.5478, allocations: 186.1 kB / 0.5729 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.596e-05/0.5478, allocations: 176.9 kB / 0.5731 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.092e-05/0.5479, allocations: 180.2 kB / 0.5733 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.5481, allocations: 392.8 kB / 0.5737 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.5482, allocations: 251.7 kB / 0.5739 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.5483, allocations: 178.5 kB / 0.5741 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.5485, allocations: 104.9 kB / 0.5742 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.5486, allocations: 179 kB / 0.5743 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.5486, allocations: 111.7 kB / 0.5744 GB, free: 5.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004552/0.5491, allocations: 0.5282 MB / 0.575 GB, free: 4.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5491, allocations: 0 / 0.575 GB, free: 4.906 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001755/0.5509, allocations: 0.751 MB / 0.5757 GB, free: 4.797 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.002354/0.5532, allocations: 1.715 MB / 0.5774 GB, free: 3.805 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.5533, allocations: 39.09 kB / 0.5774 GB, free: 3.797 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5534, allocations: 0 / 0.5774 GB, free: 3.797 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.034e-06/0.5534, allocations: 3.688 kB / 0.5774 GB, free: 3.797 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.5553, allocations: 0.8837 MB / 0.5783 GB, free: 3.266 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005198/0.5606, allocations: 5.046 MB / 0.5832 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.561, allocations: 0.883 MB / 0.5841 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003327/0.5613, allocations: 123.8 kB / 0.5842 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.5615, allocations: 256.8 kB / 0.5844 GB, free: 15.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5616, allocations: 0 / 0.5844 GB, free: 15.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05747/0.619, allocations: 33.79 MB / 0.6174 GB, free: 13.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.4/7.019, allocations: 7.844 kB / 0.6174 GB, free: 13.89 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)