Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.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_pramp_Tsine,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_pramp_Tsine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_pramp_Tsine",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.006977/0.006978, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001545/0.001545, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.538/1.538, 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.04505/0.04505, allocations: 9.1 MB / 279 MB, free: 12.06 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.001683/0.001683, allocations: 64.47 kB / 387 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2866, allocations: 48.16 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine): time 0.01928/0.3059, allocations: 18.14 MB / 453.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3223, allocations: 17.52 MB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002236/0.3226, allocations: 1.219 kB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000852/0.3235, allocations: 338 kB / 471.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006227/0.3241, allocations: 247.8 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.02222/0.3463, allocations: 7.691 MB / 479 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.3468, allocations: 350.2 kB / 479.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.404e-05/0.3468, allocations: 16.31 kB / 479.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.3471, allocations: 163.3 kB / 479.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.3473, allocations: 99.56 kB / 479.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.3473, allocations: 4 kB / 479.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01726/0.3646, allocations: 10.62 MB / 490.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.498e-05/0.3647, allocations: 23.86 kB / 490.3 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.3648, allocations: 99.53 kB / 490.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.376, allocations: 4.477 MB / 494.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.376, allocations: 0 / 494.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.376, allocations: 0 / 494.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.376, allocations: 0 / 494.9 MB, free: 4.887 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.002562/0.3786, allocations: 1.126 MB / 496 MB, free: 3.707 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3786, allocations: 12.03 kB / 496 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.3787, allocations: 46.55 kB / 496.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.816e-05/0.3787, allocations: 23.84 kB / 496.1 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3789, allocations: 194.7 kB / 496.3 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3789, allocations: 8 kB / 496.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.3789, allocations: 0 / 496.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.3793, allocations: 172.2 kB / 496.4 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.3793, allocations: 4 kB / 496.4 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3794, allocations: 11.86 kB / 496.5 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.3794, allocations: 11.98 kB / 496.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004161/0.3798, allocations: 156.3 kB / 496.6 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005789/0.3804, allocations: 485.2 kB / 497.1 MB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.3807, allocations: 166.9 kB / 497.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.381, allocations: 153.7 kB / 497.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.145/0.526, allocations: 93.62 MB / 0.5772 GB, free: 4.141 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.5261, allocations: 34.56 kB / 0.5772 GB, free: 4.098 MB / 478.1 MB Notification: Performance of pre-optimization done (n=47): time 2.354e-06/0.5261, allocations: 0 / 0.5772 GB, free: 4.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=47): time 0.001065/0.5272, allocations: 471.7 kB / 0.5777 GB, free: 3.633 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.5272, allocations: 51.41 kB / 0.5777 GB, free: 3.57 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.5274, allocations: 145.4 kB / 0.5779 GB, free: 3.422 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.5274, allocations: 29.7 kB / 0.5779 GB, free: 3.387 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.5275, allocations: 93.09 kB / 0.578 GB, free: 3.293 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.5276, allocations: 150.6 kB / 0.5781 GB, free: 3.145 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.664e-05/0.5276, allocations: 45.69 kB / 0.5782 GB, free: 3.094 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5278, allocations: 330.8 kB / 0.5785 GB, free: 2.762 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.528, allocations: 116.4 kB / 0.5786 GB, free: 2.648 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.5283, allocations: 126 kB / 0.5787 GB, free: 2.523 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/0.5288, allocations: 287.6 kB / 0.579 GB, free: 2.238 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5288, allocations: 0 / 0.579 GB, free: 2.238 MB / 478.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005814/0.5294, allocations: 329.2 kB / 0.5793 GB, free: 1.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.5294, allocations: 8 kB / 0.5793 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.5294, allocations: 0 / 0.5793 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.5294, allocations: 0 / 0.5793 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.5296, allocations: 23.97 kB / 0.5793 GB, free: 1.883 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.5296, allocations: 4 kB / 0.5793 GB, free: 1.879 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.5298, allocations: 31.75 kB / 0.5794 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.5298, allocations: 8 kB / 0.5794 GB, free: 1.84 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 (11): * Single equations (assignments): 5 * 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.0001012/0.5299, allocations: 133.7 kB / 0.5795 GB, free: 1.699 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.485e-05/0.53, allocations: 19.86 kB / 0.5795 GB, free: 1.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007628/0.5307, allocations: 404 kB / 0.5799 GB, free: 1.277 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.5308, allocations: 7.984 kB / 0.5799 GB, free: 1.27 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5308, allocations: 4 kB / 0.5799 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5308, allocations: 0 / 0.5799 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.5311, allocations: 301.6 kB / 0.5802 GB, free: 0.918 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.5311, allocations: 0 / 0.5802 GB, free: 0.918 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.5312, allocations: 19.98 kB / 0.5802 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.5312, allocations: 3.938 kB / 0.5802 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.5313, allocations: 7.984 kB / 0.5802 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5313, allocations: 0 / 0.5802 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5313, allocations: 0 / 0.5802 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006358/0.5319, allocations: 443.9 kB / 0.5806 GB, free: 448 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.884e-05/0.532, allocations: 112.9 kB / 0.5808 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.532, allocations: 4 kB / 0.5808 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.5322, allocations: 11.98 kB / 0.5808 GB, free: 300 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.5323, allocations: 19.97 kB / 0.5808 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.5323, allocations: 0 / 0.5808 GB, free: 280 kB / 478.1 MB Notification: Performance of sorting global known variables: time 5.895e-05/0.5323, allocations: 103.3 kB / 0.5809 GB, free: 176 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5323, allocations: 0 / 0.5809 GB, free: 176 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002429/0.5348, allocations: 1.141 MB / 0.582 GB, free: 15.02 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 (11): * Single equations (assignments): 5 * 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.004729/0.5395, allocations: 2.564 MB / 0.5845 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006641/0.5402, allocations: 295.3 kB / 0.5848 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5402, allocations: 0 / 0.5848 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.5405, allocations: 160.3 kB / 0.5849 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009444/0.5415, allocations: 160.4 kB / 0.5851 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.5433, allocations: 0.9152 MB / 0.586 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.5436, allocations: 0.7367 MB / 0.5867 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.794e-05/0.5437, allocations: 11.98 kB / 0.5867 GB, free: 10.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.165e-05/0.5438, allocations: 59.42 kB / 0.5868 GB, free: 10.03 MB / 494.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5438, allocations: 0 / 0.5868 GB, free: 10.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2663/0.8101, allocations: 33.55 MB / 0.6195 GB, free: 161.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.152/9.962, allocations: 9 kB / 0.6196 GB, free: 161.3 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine_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_pramp_Tsine.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe 2>&1)