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.00139/0.00139, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.374/1.374, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04767/0.04767, allocations: 9.092 MB / 278.9 MB, free: 12.17 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.001512/0.001513, allocations: 67.91 kB / 338.1 MB, free: 25.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09622/0.09774, allocations: 48.16 MB / 386.3 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.01976/0.1175, allocations: 16.89 MB / 403.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.1287, allocations: 10.46 MB / 413.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.1288, allocations: 4 kB / 413.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007564/0.1297, allocations: 275.4 kB / 413.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.455e-05/0.1297, allocations: 23.84 kB / 413.9 MB, free: 13.34 MB / 318.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.01396/0.1437, allocations: 5.739 MB / 419.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.116e-05/0.1438, allocations: 59.72 kB / 419.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.94e-05/0.1438, allocations: 0 / 419.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.1439, allocations: 35.8 kB / 419.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.75e-05/0.144, allocations: 8 kB / 419.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-06/0.144, allocations: 3.938 kB / 419.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2119/0.3559, allocations: 8.379 MB / 428.2 MB, free: 21.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.336e-05/0.356, allocations: 11.36 kB / 428.2 MB, free: 21.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.24e-05/0.3561, allocations: 10.53 kB / 428.2 MB, free: 21.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.3673, allocations: 3.627 MB / 431.8 MB, free: 21.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.3674, allocations: 0 / 431.8 MB, free: 21.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3674, allocations: 0 / 431.8 MB, free: 21.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3674, allocations: 0 / 431.8 MB, free: 21.3 MB / 318.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.003045/0.3705, allocations: 0.7476 MB / 432.6 MB, free: 20.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3705, allocations: 9.438 kB / 432.6 MB, free: 20.74 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.978e-05/0.3706, allocations: 32.33 kB / 432.6 MB, free: 20.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.3706, allocations: 5.828 kB / 432.6 MB, free: 20.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.778e-05/0.3707, allocations: 164.9 kB / 432.8 MB, free: 20.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3707, allocations: 3.906 kB / 432.8 MB, free: 20.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-06/0.3707, allocations: 0 / 432.8 MB, free: 20.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.3708, allocations: 43.92 kB / 432.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.3708, allocations: 0 / 432.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-06/0.3709, allocations: 0 / 432.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3709, allocations: 4.859 kB / 432.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.686e-05/0.3709, allocations: 10.64 kB / 432.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.371, allocations: 171.9 kB / 433 MB, free: 20.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.773e-05/0.3711, allocations: 40.92 kB / 433 MB, free: 20.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.3711, allocations: 17.44 kB / 433.1 MB, free: 20.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0545/0.4256, allocations: 33.04 MB / 466.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.4257, allocations: 34.28 kB / 466.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 4.959e-06/0.4257, allocations: 3 kB / 466.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002136/0.4259, allocations: 74.86 kB / 466.2 MB, free: 6.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.426, allocations: 51.41 kB / 466.2 MB, free: 6.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.4261, allocations: 94.42 kB / 466.3 MB, free: 6.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.4261, allocations: 26.77 kB / 466.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.977e-05/0.4261, allocations: 88.3 kB / 466.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.4262, allocations: 22.94 kB / 466.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.021e-05/0.4262, allocations: 17.62 kB / 466.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4263, allocations: 318.5 kB / 466.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.283e-05/0.4263, allocations: 12.02 kB / 466.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.811e-05/0.4264, allocations: 14.59 kB / 466.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.523e-05/0.4264, allocations: 34.61 kB / 466.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4264, allocations: 2.719 kB / 466.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.15e-05/0.4265, allocations: 62.72 kB / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4266, allocations: 9.016 kB / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4266, allocations: 0 / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4266, allocations: 1.156 kB / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.4266, allocations: 0 / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.4266, allocations: 3.281 kB / 466.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.039e-05/0.4266, allocations: 9.875 kB / 467 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.4267, allocations: 8.656 kB / 467 MB, free: 5.918 MB / 334.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.487e-05/0.4267, allocations: 111.6 kB / 467.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.4268, allocations: 1.719 kB / 467.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.4269, allocations: 168.9 kB / 467.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.395e-05/0.427, allocations: 184.2 kB / 467.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-05/0.427, allocations: 176.3 kB / 467.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002701/0.4273, allocations: 181.6 kB / 467.8 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.4276, allocations: 413.9 kB / 468.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/0.4276, allocations: 106.9 kB / 468.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.395e-05/0.4277, allocations: 105 kB / 468.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.568e-05/0.4277, allocations: 184.2 kB / 468.6 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.4278, allocations: 178.2 kB / 468.7 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.549e-05/0.4279, allocations: 182.5 kB / 468.9 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.416e-05/0.4279, allocations: 182.1 kB / 469.1 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.4281, allocations: 316.6 kB / 469.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.636e-05/0.4282, allocations: 183.8 kB / 469.6 MB, free: 19.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.478e-05/0.4283, allocations: 184.6 kB / 469.8 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.052e-05/0.4284, allocations: 111.7 kB / 469.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.4284, allocations: 179.6 kB / 470 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.4285, allocations: 112.1 kB / 470.1 MB, free: 18.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.436e-05/0.4286, allocations: 101.7 kB / 470.2 MB, free: 18.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4286, allocations: 0 / 470.2 MB, free: 18.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003193/0.4318, allocations: 0.8538 MB / 471.1 MB, free: 18.39 MB / 350.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.006003/0.4378, allocations: 2.061 MB / 473.2 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.4379, allocations: 20.84 kB / 473.2 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4379, allocations: 2.734 kB / 473.2 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.206e-06/0.4379, allocations: 0 / 473.2 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.4386, allocations: 493.3 kB / 473.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.4417, allocations: 1.739 MB / 475.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.4419, allocations: 0.6779 MB / 476.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.758e-05/0.442, allocations: 0 / 476.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.442, allocations: 14.19 kB / 476.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.442, allocations: 0 / 476.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05738/0.4994, allocations: 25.01 MB / 0.4894 GB, free: 8.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.846, allocations: 0 / 0.4894 GB, free: 8.707 MB / 366.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)