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.001094/0.001094, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.0009499/0.0009499, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.242/1.242, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2555/0.2555, 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.00137/0.00137, allocations: 70.59 kB / 390.2 MB, free: 48.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.08805, allocations: 59.15 MB / 449.3 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.4463/0.5343, allocations: 105.8 MB / 0.5421 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.5367, allocations: 0.9286 MB / 0.543 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004734/0.5372, allocations: 23.09 kB / 0.5431 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007032/0.5379, allocations: 299.8 kB / 0.5434 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007612/0.5387, allocations: 442.7 kB / 0.5438 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01075/0.5494, allocations: 4.505 MB / 0.5482 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.551, allocations: 1.31 MB / 0.5495 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006351/0.5517, allocations: 471.7 kB / 0.5499 GB, free: 3.184 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004775/0.5522, allocations: 443.9 kB / 0.5503 GB, free: 3.156 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000474/0.5526, allocations: 429.3 kB / 0.5507 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.232e-05/0.5527, allocations: 37.53 kB / 0.5508 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007876/0.5606, allocations: 4.313 MB / 0.555 GB, free: 3.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.5608, allocations: 111.5 kB / 0.5551 GB, free: 3.039 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.5612, allocations: 361.6 kB / 0.5554 GB, free: 2.953 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004901/0.5661, allocations: 3.079 MB / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.5661, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5661, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.5661, allocations: 0 / 0.5584 GB, free: 2.707 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.001616/0.5677, allocations: 1.283 MB / 0.5597 GB, free: 1.918 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.5678, allocations: 14.98 kB / 0.5597 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.218e-05/0.5679, allocations: 97.33 kB / 0.5598 GB, free: 1.867 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.667e-05/0.568, allocations: 87.41 kB / 0.5599 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.5684, allocations: 487.1 kB / 0.5603 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.5685, allocations: 37.41 kB / 0.5604 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.5685, allocations: 52 kB / 0.5604 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/0.5691, allocations: 0.6063 MB / 0.561 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.5691, allocations: 6.625 kB / 0.561 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.5692, allocations: 23.62 kB / 0.5611 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.5692, allocations: 15.5 kB / 0.5611 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.5695, allocations: 254 kB / 0.5613 GB, free: 1.125 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.5737, allocations: 7.08 MB / 0.5682 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.452e-05/0.5738, allocations: 165.1 kB / 0.5684 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.218e-05/0.5738, allocations: 88.08 kB / 0.5685 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.5738, allocations: 80.75 kB / 0.5685 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.5739, allocations: 111.7 kB / 0.5687 GB, free: 10.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.313e-06/0.5739, allocations: 0 / 0.5687 GB, free: 10.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001372/0.574, allocations: 102.5 kB / 0.5688 GB, free: 9.945 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.5741, allocations: 129.5 kB / 0.5689 GB, free: 9.809 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006992/0.5748, allocations: 0.7725 MB / 0.5696 GB, free: 9.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.5748, allocations: 29.7 kB / 0.5697 GB, free: 9.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.5751, allocations: 385.2 kB / 0.57 GB, free: 9.504 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-06/0.5751, allocations: 2.25 kB / 0.57 GB, free: 9.504 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.5751, allocations: 40.67 kB / 0.5701 GB, free: 9.484 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5752, allocations: 314.4 kB / 0.5704 GB, free: 9.176 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.999e-05/0.5753, allocations: 16.98 kB / 0.5704 GB, free: 9.172 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.136e-05/0.5754, allocations: 95.14 kB / 0.5705 GB, free: 9.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.5755, allocations: 109.7 kB / 0.5706 GB, free: 8.961 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5755, allocations: 11.5 kB / 0.5706 GB, free: 8.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000277/0.5758, allocations: 194.6 kB / 0.5708 GB, free: 8.867 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.5758, allocations: 7 kB / 0.5708 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5758, allocations: 3.719 kB / 0.5708 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.5758, allocations: 3.906 kB / 0.5708 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.5759, allocations: 27 kB / 0.5708 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.5759, allocations: 7.719 kB / 0.5708 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.5761, allocations: 53.19 kB / 0.5709 GB, free: 8.824 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.5761, allocations: 8.953 kB / 0.5709 GB, free: 8.824 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.0001667/0.5763, allocations: 234.9 kB / 0.5711 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.5764, allocations: 183.6 kB / 0.5713 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.5765, allocations: 169.1 kB / 0.5714 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.538e-05/0.5766, allocations: 180.3 kB / 0.5716 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-05/0.5767, allocations: 187.6 kB / 0.5718 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.37e-05/0.5767, allocations: 181.4 kB / 0.572 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.5772, allocations: 0.653 MB / 0.5726 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.357e-05/0.5772, allocations: 101 kB / 0.5727 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.5773, allocations: 108.5 kB / 0.5728 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.6e-05/0.5774, allocations: 180.2 kB / 0.573 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.283e-05/0.5774, allocations: 182 kB / 0.5731 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.429e-05/0.5775, allocations: 181.5 kB / 0.5733 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.248e-05/0.5776, allocations: 176.3 kB / 0.5735 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.5778, allocations: 396.2 kB / 0.5739 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.5779, allocations: 248.7 kB / 0.5741 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.5781, allocations: 184.8 kB / 0.5743 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.5782, allocations: 101 kB / 0.5744 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.07e-05/0.5783, allocations: 182.2 kB / 0.5745 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.5784, allocations: 108.8 kB / 0.5747 GB, free: 5.234 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004628/0.5788, allocations: 0.5307 MB / 0.5752 GB, free: 5.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.5788, allocations: 0 / 0.5752 GB, free: 5.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0018/0.5806, allocations: 0.7466 MB / 0.5759 GB, free: 5.016 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.002532/0.5832, allocations: 1.717 MB / 0.5776 GB, free: 4.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.5833, allocations: 39.86 kB / 0.5776 GB, free: 4.016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.5833, allocations: 0 / 0.5776 GB, free: 4.016 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.115e-06/0.5833, allocations: 3.938 kB / 0.5776 GB, free: 4.012 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.5856, allocations: 0.8857 MB / 0.5785 GB, free: 3.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/0.5907, allocations: 5 MB / 0.5834 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.5911, allocations: 0.8734 MB / 0.5842 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000439/0.5916, allocations: 129.9 kB / 0.5843 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.5918, allocations: 257.4 kB / 0.5846 GB, free: 15.31 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5919, allocations: 4 kB / 0.5846 GB, free: 15.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0616/0.6535, allocations: 33.9 MB / 0.6177 GB, free: 13.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/8.343, allocations: 7.984 kB / 0.6177 GB, free: 13.88 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 & 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)