Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_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_ph_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ph_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ph_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.005476/0.005476, allocations: 95.02 kB / 15.73 MB, free: 6.039 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.001251/0.001251, allocations: 196.2 kB / 16.68 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.393/1.393, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0459/0.0459, allocations: 9.1 MB / 279 MB, free: 12.14 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.001357/0.001357, allocations: 82.31 kB / 387 MB, free: 8.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.252, allocations: 48.15 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.01671/0.2687, allocations: 16.84 MB / 452 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009058/0.2778, allocations: 9.751 MB / 461.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.113e-05/0.2779, allocations: 1.281 kB / 461.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006832/0.2786, allocations: 279.9 kB / 462 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.087e-05/0.2787, allocations: 27.22 kB / 462 MB, free: 2.75 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: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. Notification: Performance of NFTyping.typeClassSections: time 0.01228/0.291, allocations: 5.333 MB / 467.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.288e-05/0.2911, allocations: 46.55 kB / 467.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.2911, allocations: 6.734 kB / 467.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.527e-05/0.2912, allocations: 22.38 kB / 467.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.788e-05/0.2913, allocations: 9.469 kB / 467.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-06/0.2913, allocations: 1.781 kB / 467.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01267/0.304, allocations: 7.85 MB / 475.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.375e-05/0.304, allocations: 4 kB / 475.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.054e-05/0.3041, allocations: 15.94 kB / 475.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007016/0.3111, allocations: 3.304 MB / 478.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.3111, allocations: 4 kB / 478.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3112, allocations: 4 kB / 478.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3112, allocations: 0 / 478.6 MB, free: 5.227 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.001277/0.3125, allocations: 0.7145 MB / 479.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3125, allocations: 8.031 kB / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.668e-05/0.3126, allocations: 30.56 kB / 479.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.3126, allocations: 11.94 kB / 479.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.3127, allocations: 167 kB / 479.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.3127, allocations: 0 / 479.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.3127, allocations: 3.984 kB / 479.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.3129, allocations: 45.64 kB / 479.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3129, allocations: 0 / 479.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.3129, allocations: 3.938 kB / 479.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.3129, allocations: 3.984 kB / 479.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.624e-05/0.3129, allocations: 16 kB / 479.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.3131, allocations: 165.6 kB / 479.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.955e-05/0.3132, allocations: 30.58 kB / 479.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.919e-05/0.3132, allocations: 24.88 kB / 479.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.3388, allocations: 14 MB / 493.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3389, allocations: 30.56 kB / 493.8 MB, free: 3.418 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.984e-06/0.3389, allocations: 0 / 493.8 MB, free: 3.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002417/0.3391, allocations: 77.64 kB / 493.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.3392, allocations: 51.41 kB / 494 MB, free: 3.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.179e-05/0.3393, allocations: 105.8 kB / 494.1 MB, free: 3.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.3393, allocations: 25.7 kB / 494.1 MB, free: 3.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.3394, allocations: 80.14 kB / 494.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.3394, allocations: 19.8 kB / 494.2 MB, free: 3.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.3395, allocations: 13.72 kB / 494.2 MB, free: 3.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3396, allocations: 322.8 kB / 494.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.016e-05/0.3397, allocations: 8 kB / 494.5 MB, free: 2.676 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.892e-05/0.3397, allocations: 11.94 kB / 494.5 MB, free: 2.664 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.504e-05/0.3397, allocations: 37 kB / 494.6 MB, free: 2.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3397, allocations: 4 kB / 494.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.893e-05/0.3399, allocations: 61.67 kB / 494.6 MB, free: 2.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3399, allocations: 7.938 kB / 494.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3399, allocations: 0 / 494.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3399, allocations: 4 kB / 494.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.3399, allocations: 0 / 494.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.3399, allocations: 0 / 494.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.837e-05/0.34, allocations: 11.88 kB / 494.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.34, allocations: 0 / 494.7 MB, free: 2.531 MB / 366.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.644e-05/0.3401, allocations: 117.9 kB / 494.8 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-06/0.3401, allocations: 0 / 494.8 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.3403, allocations: 170.8 kB / 495 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-05/0.3404, allocations: 184.2 kB / 495.1 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-05/0.3405, allocations: 180.2 kB / 495.3 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.112e-05/0.3406, allocations: 180.2 kB / 495.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.3409, allocations: 425 kB / 495.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.095e-05/0.3409, allocations: 101 kB / 496 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.517e-05/0.341, allocations: 108.9 kB / 496.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.083e-05/0.3411, allocations: 184.2 kB / 496.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.193e-05/0.3412, allocations: 176.3 kB / 496.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.676e-05/0.3413, allocations: 188.2 kB / 496.6 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-05/0.3413, allocations: 176.3 kB / 496.8 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.3415, allocations: 311.8 kB / 497.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.3416, allocations: 182.1 kB / 497.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.737e-05/0.3417, allocations: 180.2 kB / 497.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.203e-05/0.3418, allocations: 109 kB / 497.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.3419, allocations: 180.2 kB / 497.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.3419, allocations: 120.9 kB / 497.9 MB, free: 15.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.552e-05/0.342, allocations: 99.27 kB / 498 MB, free: 14.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.342, allocations: 0 / 498 MB, free: 14.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001731/0.3437, allocations: 0.7553 MB / 498.7 MB, free: 14.23 MB / 382.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.002979/0.3467, allocations: 1.919 MB / 0.4889 GB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.272e-05/0.3468, allocations: 16 kB / 0.4889 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3468, allocations: 0 / 0.4889 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.368e-06/0.3468, allocations: 7.938 kB / 0.4889 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.3473, allocations: 492.2 kB / 0.4894 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.3489, allocations: 1.704 MB / 0.4911 GB, free: 9.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.3491, allocations: 0.6766 MB / 0.4917 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.304e-05/0.3492, allocations: 3.984 kB / 0.4917 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.422e-05/0.3492, allocations: 19.47 kB / 0.4918 GB, free: 9.258 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3492, allocations: 0 / 0.4918 GB, free: 9.258 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04736/0.3966, allocations: 23.27 MB / 0.5145 GB, free: 1.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.549/8.946, allocations: 7.922 kB / 0.5145 GB, free: 1.965 MB / 398.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_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_ph_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe 2>&1)