Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia 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(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",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.006502/0.006502, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001315/0.001315, allocations: 190.8 kB / 16.67 MB, free: 5.969 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.572/1.572, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.051/0.051, allocations: 9.096 MB / 279 MB, free: 12.1 MB / 238.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.001661/0.001661, allocations: 70.39 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2918, allocations: 48.15 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.02129/0.3131, allocations: 18.13 MB / 453.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.331, allocations: 17.53 MB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002535/0.3313, allocations: 2.188 kB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009964/0.3323, allocations: 337.6 kB / 471.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007394/0.3331, allocations: 248.7 kB / 471.3 MB, free: 11.05 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02429/0.3574, allocations: 7.687 MB / 479 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006593/0.358, allocations: 350.2 kB / 479.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.487e-05/0.3581, allocations: 20.31 kB / 479.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.3585, allocations: 155.3 kB / 479.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.3587, allocations: 107.5 kB / 479.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.3588, allocations: 4 kB / 479.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02094/0.3797, allocations: 10.62 MB / 490.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.3798, allocations: 23.86 kB / 490.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001845/0.38, allocations: 95.53 kB / 490.4 MB, free: 9.367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.3953, allocations: 4.477 MB / 494.9 MB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3953, allocations: 0 / 494.9 MB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3953, allocations: 0 / 494.9 MB, free: 4.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3954, allocations: 0 / 494.9 MB, free: 4.879 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.003118/0.3985, allocations: 1.126 MB / 496 MB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.3986, allocations: 8.031 kB / 496 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.445e-05/0.3986, allocations: 50.55 kB / 496.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.3987, allocations: 19.86 kB / 496.1 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.3989, allocations: 202.1 kB / 496.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3989, allocations: 0 / 496.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.3989, allocations: 11.94 kB / 496.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.3993, allocations: 172.2 kB / 496.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3994, allocations: 4 kB / 496.5 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.3994, allocations: 3.938 kB / 496.5 MB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.3994, allocations: 7.984 kB / 496.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.3998, allocations: 156.3 kB / 496.6 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.4001, allocations: 290.1 kB / 496.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.4005, allocations: 178.9 kB / 497.1 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.4008, allocations: 165.6 kB / 497.2 MB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1586/0.5594, allocations: 93.62 MB / 0.577 GB, free: 4.312 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.5595, allocations: 42.44 kB / 0.5771 GB, free: 4.262 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.515e-06/0.5595, allocations: 0 / 0.5771 GB, free: 4.262 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001132/0.5606, allocations: 483.7 kB / 0.5775 GB, free: 3.785 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.5607, allocations: 51.41 kB / 0.5776 GB, free: 3.723 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.5608, allocations: 138.1 kB / 0.5777 GB, free: 3.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.5609, allocations: 25.7 kB / 0.5777 GB, free: 3.547 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.5609, allocations: 93.14 kB / 0.5778 GB, free: 3.453 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.561, allocations: 158.5 kB / 0.578 GB, free: 3.297 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.5611, allocations: 45.69 kB / 0.578 GB, free: 3.246 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5613, allocations: 330.8 kB / 0.5783 GB, free: 2.914 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.5615, allocations: 116.4 kB / 0.5784 GB, free: 2.801 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.5618, allocations: 118.1 kB / 0.5785 GB, free: 2.684 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005445/0.5623, allocations: 295.6 kB / 0.5788 GB, free: 2.391 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5624, allocations: 0 / 0.5788 GB, free: 2.391 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006455/0.563, allocations: 337.1 kB / 0.5791 GB, free: 2.059 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.563, allocations: 7.984 kB / 0.5792 GB, free: 2.051 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5631, allocations: 4 kB / 0.5792 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.5631, allocations: 4 kB / 0.5792 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.5632, allocations: 19.98 kB / 0.5792 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.5633, allocations: 0 / 0.5792 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.5634, allocations: 35.75 kB / 0.5792 GB, free: 1.988 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.5635, allocations: 8 kB / 0.5792 GB, free: 1.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0001144/0.5636, allocations: 125.8 kB / 0.5793 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.5636, allocations: 27.8 kB / 0.5794 GB, free: 1.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007536/0.5644, allocations: 400 kB / 0.5798 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.5644, allocations: 15.98 kB / 0.5798 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5644, allocations: 4 kB / 0.5798 GB, free: 1.402 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5644, allocations: 3.984 kB / 0.5798 GB, free: 1.398 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.5647, allocations: 309.4 kB / 0.5801 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5647, allocations: 0 / 0.5801 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.5648, allocations: 23.97 kB / 0.5801 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.5648, allocations: 0 / 0.5801 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.5649, allocations: 0 / 0.5801 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.5649, allocations: 0 / 0.5801 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5649, allocations: 4 kB / 0.5801 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00063/0.5655, allocations: 377.5 kB / 0.5805 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.5656, allocations: 108.9 kB / 0.5806 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.5657, allocations: 11.98 kB / 0.5806 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.5658, allocations: 11.98 kB / 0.5806 GB, free: 492 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.5659, allocations: 15.98 kB / 0.5806 GB, free: 476 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.5659, allocations: 4 kB / 0.5806 GB, free: 472 kB / 478.1 MB Notification: Performance of sorting global known variables: time 7.223e-05/0.566, allocations: 107.2 kB / 0.5807 GB, free: 364 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.566, allocations: 3.938 kB / 0.5807 GB, free: 360 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.003802/0.5698, allocations: 1.141 MB / 0.5818 GB, free: 15.21 MB / 494.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: 6 (state.phase,state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.008723/0.5785, allocations: 2.495 MB / 0.5843 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.5796, allocations: 295.3 kB / 0.5845 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5796, allocations: 0 / 0.5845 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.5802, allocations: 168.3 kB / 0.5847 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.5816, allocations: 159 kB / 0.5849 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.5854, allocations: 0.9268 MB / 0.5858 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.5858, allocations: 0.7368 MB / 0.5865 GB, free: 10.33 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.586, allocations: 20.42 kB / 0.5865 GB, free: 10.31 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.5861, allocations: 51.42 kB / 0.5865 GB, free: 10.26 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5861, allocations: 0 / 0.5865 GB, free: 10.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2927/0.8788, allocations: 33.59 MB / 0.6194 GB, free: 161.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.164/10.04, allocations: 1.688 kB / 0.6194 GB, free: 161.3 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)