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.005303/0.005303, allocations: 99.45 kB / 15.73 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.001186/0.001186, allocations: 192.2 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.449/1.449, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04776/0.04776, allocations: 9.1 MB / 279 MB, free: 12.05 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.001668/0.001668, allocations: 67.89 kB / 387 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.301, allocations: 48.15 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.02/0.3211, allocations: 18.13 MB / 453.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02038/0.3415, allocations: 17.54 MB / 470.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.3419, allocations: 1.031 kB / 470.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.3431, allocations: 335 kB / 471.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008702/0.344, allocations: 244.4 kB / 471.3 MB, free: 11.07 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.02353/0.3675, allocations: 7.686 MB / 479 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.368, allocations: 350.2 kB / 479.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.106e-05/0.3681, allocations: 16.3 kB / 479.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.3684, allocations: 163.4 kB / 479.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.3686, allocations: 95.56 kB / 479.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.3686, allocations: 4 kB / 479.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01788/0.3865, allocations: 10.63 MB / 490.3 MB, free: 9.512 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.3866, allocations: 19.92 kB / 490.3 MB, free: 9.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.3868, allocations: 103.5 kB / 490.4 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01398/0.4008, allocations: 4.465 MB / 494.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4008, allocations: 0 / 494.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4008, allocations: 0 / 494.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.4009, allocations: 0 / 494.9 MB, free: 4.914 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.003352/0.4042, allocations: 1.13 MB / 496 MB, free: 3.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.4043, allocations: 16.03 kB / 496 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.4044, allocations: 50.48 kB / 496.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.31e-05/0.4044, allocations: 19.86 kB / 496.1 MB, free: 3.637 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.4046, allocations: 194.7 kB / 496.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4047, allocations: 4 kB / 496.3 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.4047, allocations: 8 kB / 496.3 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.4051, allocations: 168.2 kB / 496.4 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.4051, allocations: 0 / 496.4 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.4052, allocations: 8 kB / 496.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.4052, allocations: 7.984 kB / 496.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.4056, allocations: 156.3 kB / 496.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.406, allocations: 294 kB / 496.9 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.4064, allocations: 182.9 kB / 497.1 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.4067, allocations: 161.6 kB / 497.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1534/0.5601, allocations: 93.62 MB / 0.577 GB, free: 4.348 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.5601, allocations: 42.5 kB / 0.577 GB, free: 4.297 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.113e-06/0.5601, allocations: 0 / 0.577 GB, free: 4.297 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.0012/0.5613, allocations: 479.7 kB / 0.5775 GB, free: 3.824 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.5614, allocations: 59.41 kB / 0.5776 GB, free: 3.754 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.5616, allocations: 137.6 kB / 0.5777 GB, free: 3.613 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.5616, allocations: 25.7 kB / 0.5777 GB, free: 3.582 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.5617, allocations: 89.14 kB / 0.5778 GB, free: 3.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.5618, allocations: 162.5 kB / 0.578 GB, free: 3.332 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.5619, allocations: 45.7 kB / 0.578 GB, free: 3.281 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.562, allocations: 330.8 kB / 0.5783 GB, free: 2.949 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.5623, allocations: 120.4 kB / 0.5784 GB, free: 2.832 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.5626, allocations: 126 kB / 0.5786 GB, free: 2.707 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005515/0.5632, allocations: 279.7 kB / 0.5788 GB, free: 2.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.5632, allocations: 11.92 kB / 0.5788 GB, free: 2.418 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006698/0.5638, allocations: 333.2 kB / 0.5791 GB, free: 2.09 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.5639, allocations: 4 kB / 0.5791 GB, free: 2.086 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.5639, allocations: 0 / 0.5791 GB, free: 2.086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.5639, allocations: 0 / 0.5791 GB, free: 2.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.5641, allocations: 27.97 kB / 0.5792 GB, free: 2.059 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.5641, allocations: 4 kB / 0.5792 GB, free: 2.055 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.5643, allocations: 31.77 kB / 0.5792 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.5643, allocations: 7.984 kB / 0.5792 GB, free: 2.016 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.0001371/0.5645, allocations: 133.7 kB / 0.5793 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.466e-05/0.5645, allocations: 23.8 kB / 0.5794 GB, free: 1.852 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008888/0.5654, allocations: 404 kB / 0.5798 GB, free: 1.449 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.285e-05/0.5655, allocations: 11.98 kB / 0.5798 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.5655, allocations: 0 / 0.5798 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5655, allocations: 0 / 0.5798 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.5659, allocations: 297.5 kB / 0.58 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.5659, allocations: 4 kB / 0.5801 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.566, allocations: 23.97 kB / 0.5801 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.566, allocations: 4 kB / 0.5801 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.566, allocations: 11.98 kB / 0.5801 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.5661, allocations: 0 / 0.5801 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5661, allocations: 0 / 0.5801 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.5668, allocations: 381.4 kB / 0.5805 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.5669, allocations: 112.9 kB / 0.5806 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.5669, allocations: 0 / 0.5806 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.5671, allocations: 19.97 kB / 0.5806 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.5672, allocations: 7.984 kB / 0.5806 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.5672, allocations: 11.94 kB / 0.5806 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.199e-05/0.5673, allocations: 103.3 kB / 0.5807 GB, free: 400 kB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5673, allocations: 0 / 0.5807 GB, free: 400 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002899/0.5702, allocations: 1.141 MB / 0.5818 GB, free: 15.25 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.006382/0.5766, allocations: 2.499 MB / 0.5843 GB, free: 12.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007502/0.5774, allocations: 303.2 kB / 0.5845 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5774, allocations: 0 / 0.5845 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.5778, allocations: 160.4 kB / 0.5847 GB, free: 12.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009286/0.5788, allocations: 156.5 kB / 0.5848 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.5812, allocations: 0.9307 MB / 0.5858 GB, free: 11.13 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.5815, allocations: 0.7368 MB / 0.5865 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.5816, allocations: 16.42 kB / 0.5865 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.5817, allocations: 59.36 kB / 0.5865 GB, free: 10.29 MB / 494.1 MB Notification: Performance of SimCode: time 4.2e-07/0.5817, allocations: 0 / 0.5865 GB, free: 10.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2672/0.8489, allocations: 33.59 MB / 0.6193 GB, free: 161.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.503/10.35, allocations: 4.938 kB / 0.6194 GB, free: 161.4 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)