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.008009/0.008009, 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.001662/0.001662, allocations: 197 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.439/1.439, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04705/0.04705, allocations: 9.107 MB / 279 MB, free: 12.07 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.00257/0.00257, allocations: 66.41 kB / 387 MB, free: 8.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2713, allocations: 48.16 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.01963/0.291, allocations: 16.88 MB / 452 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009962/0.301, allocations: 10.46 MB / 462.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.3011, allocations: 3.938 kB / 462.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007399/0.3019, allocations: 306.2 kB / 462.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.798e-05/0.3019, allocations: 27.31 kB / 462.8 MB, free: 2.109 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.01536/0.3173, allocations: 6.018 MB / 468.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.502e-05/0.3174, allocations: 55.75 kB / 468.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.3175, allocations: 3.094 kB / 468.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.87e-05/0.3176, allocations: 28.33 kB / 468.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.691e-05/0.3176, allocations: 14.09 kB / 468.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.3176, allocations: 4 kB / 468.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01454/0.3322, allocations: 8.757 MB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.3322, allocations: 3.938 kB / 477.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.3323, allocations: 11.94 kB / 477.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008754/0.3411, allocations: 3.632 MB / 481.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3411, allocations: 0 / 481.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3411, allocations: 0 / 481.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3411, allocations: 0 / 481.3 MB, free: 2.496 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.001415/0.3425, allocations: 0.7727 MB / 482.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.3426, allocations: 12.03 kB / 482.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.216e-05/0.3426, allocations: 30.56 kB / 482.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.81e-05/0.3427, allocations: 7.891 kB / 482.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.3428, allocations: 163 kB / 482.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.3428, allocations: 8 kB / 482.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.3429, allocations: 0 / 482.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.343, allocations: 49.59 kB / 482.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.343, allocations: 8 kB / 482.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.343, allocations: 0 / 482.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.343, allocations: 3.938 kB / 482.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.226e-05/0.3431, allocations: 19.92 kB / 482.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.3432, allocations: 157.7 kB / 482.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.899e-05/0.3433, allocations: 30.58 kB / 482.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.938e-05/0.3434, allocations: 24.83 kB / 482.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05597/0.3993, allocations: 33.03 MB / 0.5035 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.3994, allocations: 34.55 kB / 0.5036 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.745e-06/0.3994, allocations: 0 / 0.5036 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002273/0.3997, allocations: 73.62 kB / 0.5036 GB, free: 10.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.3997, allocations: 59.44 kB / 0.5037 GB, free: 10.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.61e-05/0.3998, allocations: 93.8 kB / 0.5038 GB, free: 9.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.3998, allocations: 25.7 kB / 0.5038 GB, free: 9.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.871e-05/0.3998, allocations: 84.14 kB / 0.5039 GB, free: 9.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.3999, allocations: 27.77 kB / 0.5039 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.3999, allocations: 13.72 kB / 0.5039 GB, free: 9.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4, allocations: 314.8 kB / 0.5042 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.4001, allocations: 20.11 kB / 0.5043 GB, free: 9.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.54e-05/0.4001, allocations: 8 kB / 0.5043 GB, free: 9.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.532e-05/0.4002, allocations: 36.84 kB / 0.5043 GB, free: 9.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4002, allocations: 0 / 0.5043 GB, free: 9.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.66e-05/0.4002, allocations: 61.64 kB / 0.5044 GB, free: 9.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4003, allocations: 9.031 kB / 0.5044 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4003, allocations: 0 / 0.5044 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.4003, allocations: 3.938 kB / 0.5044 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.4003, allocations: 0 / 0.5044 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.4003, allocations: 3.938 kB / 0.5044 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.167e-05/0.4003, allocations: 8.062 kB / 0.5044 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.4004, allocations: 0 / 0.5044 GB, free: 9.293 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 7.432e-05/0.4004, allocations: 109.8 kB / 0.5045 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.4005, allocations: 7.938 kB / 0.5045 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.4006, allocations: 170.8 kB / 0.5047 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.194e-05/0.4007, allocations: 184.2 kB / 0.5048 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.136e-05/0.4007, allocations: 180.3 kB / 0.505 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-05/0.4008, allocations: 180.2 kB / 0.5052 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.401, allocations: 417.1 kB / 0.5056 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.322e-05/0.4011, allocations: 104.9 kB / 0.5057 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.456e-05/0.4011, allocations: 108.9 kB / 0.5058 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.1e-05/0.4012, allocations: 184.2 kB / 0.5059 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.085e-05/0.4013, allocations: 184.2 kB / 0.5061 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.804e-05/0.4013, allocations: 180.2 kB / 0.5063 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.639e-05/0.4014, allocations: 180.3 kB / 0.5065 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000123/0.4015, allocations: 303.8 kB / 0.5068 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.339e-05/0.4016, allocations: 190 kB / 0.5069 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.916e-05/0.4017, allocations: 192.2 kB / 0.5071 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.4018, allocations: 101 kB / 0.5072 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.302e-05/0.4018, allocations: 180.2 kB / 0.5074 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/0.4019, allocations: 105.3 kB / 0.5075 GB, free: 5.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.809e-05/0.4019, allocations: 103.3 kB / 0.5076 GB, free: 5.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4019, allocations: 4 kB / 0.5076 GB, free: 5.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002094/0.404, allocations: 0.8722 MB / 0.5084 GB, free: 4.883 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.003639/0.4077, allocations: 2.083 MB / 0.5105 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.539e-05/0.4078, allocations: 31.92 kB / 0.5105 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4078, allocations: 0 / 0.5105 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.773e-06/0.4078, allocations: 0 / 0.5105 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.4084, allocations: 488 kB / 0.511 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.41, allocations: 1.755 MB / 0.5127 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.4103, allocations: 0.6806 MB / 0.5134 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.143e-05/0.4103, allocations: 0 / 0.5134 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.316e-05/0.4103, allocations: 11.44 kB / 0.5134 GB, free: 15.7 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4103, allocations: 0 / 0.5134 GB, free: 15.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04845/0.4588, allocations: 24.99 MB / 0.5378 GB, free: 6.676 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.81/9.269, allocations: 3.984 kB / 0.5378 GB, free: 6.672 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)