Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.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.Parameter.State_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter",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.006704/0.006704, allocations: 99.53 kB / 15.73 MB, free: 6.453 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.0017/0.0017, allocations: 196.3 kB / 16.68 MB, free: 6.352 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.432/1.432, allocations: 205.1 MB / 222.6 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05165/0.05165, allocations: 9.106 MB / 279 MB, free: 12.09 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.002076/0.002076, allocations: 67.89 kB / 387 MB, free: 8.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2349, allocations: 48.16 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.01767/0.2526, allocations: 16.89 MB / 452 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.2641, allocations: 10.46 MB / 462.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.592e-05/0.2642, allocations: 0 / 462.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008074/0.265, allocations: 264.6 kB / 462.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.323e-05/0.2651, allocations: 30.14 kB / 462.8 MB, free: 2.137 MB / 334.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: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.01489/0.28, allocations: 5.742 MB / 468.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.2801, allocations: 53.38 kB / 468.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.2802, allocations: 5.203 kB / 468.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2803, allocations: 39.67 kB / 468.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.677e-05/0.2803, allocations: 7.594 kB / 468.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-06/0.2803, allocations: 0 / 468.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01518/0.2955, allocations: 8.754 MB / 477.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.533e-05/0.2956, allocations: 7.938 kB / 477.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.798e-05/0.2956, allocations: 11.94 kB / 477.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008628/0.3043, allocations: 3.628 MB / 481 MB, free: 2.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3043, allocations: 0 / 481 MB, free: 2.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3043, allocations: 0 / 481 MB, free: 2.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3043, allocations: 0 / 481 MB, free: 2.828 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.00159/0.3059, allocations: 0.7649 MB / 481.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.306, allocations: 11.97 kB / 481.8 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.306, allocations: 38.55 kB / 481.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.094e-05/0.3061, allocations: 11.89 kB / 481.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.3062, allocations: 163 kB / 482 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.3062, allocations: 4 kB / 482 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.3062, allocations: 7.938 kB / 482 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3064, allocations: 41.69 kB / 482 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.3064, allocations: 0 / 482 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.3064, allocations: 0 / 482 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3064, allocations: 0 / 482 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.977e-05/0.3064, allocations: 23.81 kB / 482.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.3066, allocations: 165.7 kB / 482.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.211e-05/0.3067, allocations: 38.56 kB / 482.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.75e-05/0.3068, allocations: 12.89 kB / 482.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05941/0.3662, allocations: 33.03 MB / 0.5032 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.3662, allocations: 42.56 kB / 0.5033 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.836e-06/0.3663, allocations: 0 / 0.5033 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002181/0.3665, allocations: 73.8 kB / 0.5033 GB, free: 10.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3666, allocations: 55.39 kB / 0.5034 GB, free: 10.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.297e-05/0.3667, allocations: 97.86 kB / 0.5035 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.3667, allocations: 25.7 kB / 0.5035 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.3668, allocations: 80.14 kB / 0.5036 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.938e-05/0.3668, allocations: 19.8 kB / 0.5036 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.946e-05/0.3669, allocations: 25.86 kB / 0.5036 GB, free: 10.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.367, allocations: 310.8 kB / 0.5039 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.29e-05/0.3671, allocations: 8 kB / 0.5039 GB, free: 9.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.527e-05/0.3671, allocations: 23.95 kB / 0.5039 GB, free: 9.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.799e-05/0.3671, allocations: 40.78 kB / 0.504 GB, free: 9.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3672, allocations: 0 / 0.504 GB, free: 9.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001133/0.3673, allocations: 61.64 kB / 0.504 GB, free: 9.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3673, allocations: 11.94 kB / 0.5041 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3673, allocations: 0 / 0.5041 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3673, allocations: 4.062 kB / 0.5041 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.3674, allocations: 0 / 0.5041 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3674, allocations: 0 / 0.5041 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.039e-05/0.3674, allocations: 0 / 0.5041 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.3674, allocations: 4 kB / 0.5041 GB, free: 9.629 MB / 398.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: 1 (inletState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.933e-05/0.3675, allocations: 105.8 kB / 0.5042 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.3675, allocations: 3.938 kB / 0.5042 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001842/0.3677, allocations: 178.8 kB / 0.5043 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.241e-05/0.3678, allocations: 180.3 kB / 0.5045 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.507e-05/0.3679, allocations: 192.1 kB / 0.5047 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.305e-05/0.368, allocations: 176.3 kB / 0.5049 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.3683, allocations: 417.1 kB / 0.5053 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-05/0.3683, allocations: 104.9 kB / 0.5054 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.866e-05/0.3684, allocations: 105 kB / 0.5055 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.184e-05/0.3685, allocations: 188.1 kB / 0.5056 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.039e-05/0.3686, allocations: 180.2 kB / 0.5058 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.239e-05/0.3687, allocations: 176.3 kB / 0.506 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.001e-05/0.3688, allocations: 188.2 kB / 0.5062 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.369, allocations: 315.8 kB / 0.5065 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.2e-05/0.3691, allocations: 178.1 kB / 0.5066 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.657e-05/0.3692, allocations: 188.1 kB / 0.5068 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.3693, allocations: 112.9 kB / 0.5069 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/0.3694, allocations: 176.3 kB / 0.5071 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.626e-05/0.3694, allocations: 109.2 kB / 0.5072 GB, free: 6.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.303e-05/0.3695, allocations: 99.27 kB / 0.5073 GB, free: 6.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3695, allocations: 0 / 0.5073 GB, free: 6.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002006/0.3715, allocations: 0.8722 MB / 0.5081 GB, free: 5.215 MB / 398.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.00425/0.3758, allocations: 2.083 MB / 0.5102 GB, free: 3.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.079e-05/0.3759, allocations: 20 kB / 0.5102 GB, free: 3.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3759, allocations: 0 / 0.5102 GB, free: 3.078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.3759, allocations: 0 / 0.5102 GB, free: 3.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.3765, allocations: 491.9 kB / 0.5107 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.3785, allocations: 1.759 MB / 0.5124 GB, free: 0.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.3788, allocations: 0.6729 MB / 0.513 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.278e-05/0.3789, allocations: 8.016 kB / 0.513 GB, free: 44 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.3789, allocations: 15.44 kB / 0.5131 GB, free: 28 kB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3789, allocations: 0 / 0.5131 GB, free: 28 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/0.4351, allocations: 24.99 MB / 0.5375 GB, free: 7.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.826/9.261, allocations: 7.922 kB / 0.5375 GB, free: 7.012 MB / 430.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe 2>&1)