Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_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_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_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.006117/0.006117, allocations: 99.62 kB / 15.73 MB, free: 5.555 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.001272/0.001272, allocations: 196.2 kB / 16.68 MB, free: 5.484 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.457/1.457, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04671/0.04671, allocations: 9.096 MB / 279 MB, free: 12.08 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.001505/0.001505, allocations: 67.91 kB / 387 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 48.16 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.01765/0.2705, allocations: 16.99 MB / 452.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.2813, allocations: 11.09 MB / 463.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.724e-05/0.2814, allocations: 0 / 463.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007564/0.2821, allocations: 298.3 kB / 463.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.411e-05/0.2823, allocations: 41.53 kB / 463.5 MB, free: 1.477 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.01742/0.2997, allocations: 6.066 MB / 469.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.2999, allocations: 87.98 kB / 469.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.202e-05/0.2999, allocations: 3.781 kB / 469.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.413e-05/0.3, allocations: 35.83 kB / 469.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.543e-05/0.3001, allocations: 15.66 kB / 469.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3001, allocations: 4 kB / 469.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01481/0.3149, allocations: 8.643 MB / 478.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.283e-05/0.315, allocations: 11.92 kB / 478.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.361e-05/0.3151, allocations: 19.92 kB / 478.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009043/0.3241, allocations: 3.667 MB / 482.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3242, allocations: 0 / 482.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3242, allocations: 0 / 482.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3242, allocations: 0 / 482.1 MB, free: 1.707 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001674/0.3259, allocations: 0.8192 MB / 482.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3259, allocations: 12.03 kB / 482.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.326, allocations: 30.56 kB / 482.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.326, allocations: 11.94 kB / 483 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.3261, allocations: 171 kB / 483.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.3261, allocations: 0 / 483.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.3262, allocations: 7.938 kB / 483.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.3263, allocations: 57.62 kB / 483.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.3263, allocations: 0 / 483.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.3263, allocations: 0 / 483.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.3263, allocations: 0 / 483.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.19e-05/0.3264, allocations: 31.92 kB / 483.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001878/0.3266, allocations: 177.7 kB / 483.4 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.892e-05/0.3266, allocations: 46.56 kB / 483.4 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.292e-05/0.3267, allocations: 44.81 kB / 483.5 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06725/0.3939, allocations: 41.4 MB / 0.5126 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.394, allocations: 34.5 kB / 0.5126 GB, free: 15.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.716e-06/0.394, allocations: 0 / 0.5126 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002542/0.3943, allocations: 125.6 kB / 0.5127 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.3943, allocations: 59.33 kB / 0.5128 GB, free: 15.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.998e-05/0.3944, allocations: 97.86 kB / 0.5129 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.3944, allocations: 29.64 kB / 0.5129 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.608e-05/0.3944, allocations: 84.3 kB / 0.513 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.3945, allocations: 39.64 kB / 0.513 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.3945, allocations: 21.72 kB / 0.513 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.3946, allocations: 318.8 kB / 0.5133 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.19e-05/0.3947, allocations: 23.98 kB / 0.5134 GB, free: 14.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.757e-05/0.3947, allocations: 24 kB / 0.5134 GB, free: 14.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.318e-05/0.3948, allocations: 73.28 kB / 0.5135 GB, free: 14.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3948, allocations: 0 / 0.5135 GB, free: 14.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001441/0.395, allocations: 97.66 kB / 0.5136 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.395, allocations: 17.02 kB / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.395, allocations: 0 / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.395, allocations: 0 / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.395, allocations: 0 / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.395, allocations: 0 / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.878e-05/0.3951, allocations: 7.891 kB / 0.5136 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3951, allocations: 4 kB / 0.5136 GB, free: 14.31 MB / 414.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: 2 (state_ps.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 6.798e-05/0.3951, allocations: 113.8 kB / 0.5137 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.3952, allocations: 15.92 kB / 0.5137 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.3954, allocations: 159.5 kB / 0.5139 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3954, allocations: 0 / 0.5139 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3954, allocations: 0 / 0.5139 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.3954, allocations: 0 / 0.5139 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.3955, allocations: 177.5 kB / 0.514 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3955, allocations: 4 kB / 0.514 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.3955, allocations: 0 / 0.514 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3955, allocations: 3.938 kB / 0.514 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.3956, allocations: 4.031 kB / 0.514 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3956, allocations: 3.938 kB / 0.514 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3956, allocations: 4 kB / 0.514 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.747e-05/0.3957, allocations: 85.08 kB / 0.5141 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.35e-05/0.3957, allocations: 85.03 kB / 0.5142 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.3957, allocations: 8 kB / 0.5142 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.157e-05/0.3958, allocations: 0 / 0.5142 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-06/0.3958, allocations: 0 / 0.5142 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.3958, allocations: 4.031 kB / 0.5142 GB, free: 13.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.42e-05/0.3958, allocations: 103.2 kB / 0.5143 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3959, allocations: 0 / 0.5143 GB, free: 13.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001834/0.3977, allocations: 0.88 MB / 0.5152 GB, free: 12.55 MB / 414.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: 1 (state_ps.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.003658/0.4014, allocations: 1.898 MB / 0.517 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.4015, allocations: 47.98 kB / 0.5171 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4015, allocations: 0 / 0.5171 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.246e-05/0.4015, allocations: 19.94 kB / 0.5171 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.4019, allocations: 60.27 kB / 0.5172 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.4036, allocations: 1.664 MB / 0.5188 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.4039, allocations: 0.6846 MB / 0.5194 GB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.879e-05/0.4039, allocations: 4.094 kB / 0.5194 GB, free: 8.031 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.4039, allocations: 15.44 kB / 0.5195 GB, free: 8.016 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4039, allocations: 0 / 0.5195 GB, free: 8.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0486/0.4525, allocations: 25.76 MB / 0.5446 GB, free: 14.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.76/9.212, allocations: 15.92 kB / 0.5446 GB, free: 14.22 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_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_pT_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter.pipe 2>&1)