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.00124/0.00124, 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.001336/0.001336, allocations: 194.7 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.458/1.458, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04696/0.04696, allocations: 9.104 MB / 278.9 MB, free: 12.19 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.001417/0.001417, allocations: 71.91 kB / 338.1 MB, free: 25.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07346/0.07489, allocations: 48.16 MB / 386.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.01768/0.09261, allocations: 17 MB / 403.3 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.103, allocations: 11.08 MB / 414.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.229e-05/0.1031, allocations: 0 / 414.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006816/0.1039, allocations: 267.4 kB / 414.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.183e-05/0.1039, allocations: 31.75 kB / 414.7 MB, free: 12.66 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.01528/0.1192, allocations: 5.791 MB / 420.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.1194, allocations: 75.55 kB / 420.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.1194, allocations: 4 kB / 420.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.915e-05/0.1195, allocations: 39.8 kB / 420.6 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.1196, allocations: 15.94 kB / 420.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.348e-06/0.1196, allocations: 4 kB / 420.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1743/0.2939, allocations: 8.277 MB / 428.9 MB, free: 20.65 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.2939, allocations: 9.312 kB / 428.9 MB, free: 20.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.463e-05/0.294, allocations: 24.64 kB / 428.9 MB, free: 20.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.3045, allocations: 3.659 MB / 432.6 MB, free: 20.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3046, allocations: 0 / 432.6 MB, free: 20.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3046, allocations: 1.125 kB / 432.6 MB, free: 20.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3046, allocations: 0 / 432.6 MB, free: 20.61 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.002218/0.3068, allocations: 0.7802 MB / 433.3 MB, free: 20.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3069, allocations: 9.469 kB / 433.4 MB, free: 20.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.966e-05/0.3069, allocations: 37.66 kB / 433.4 MB, free: 20 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.307, allocations: 8.875 kB / 433.4 MB, free: 20 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.934e-05/0.3071, allocations: 171.8 kB / 433.6 MB, free: 19.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.3071, allocations: 2.5 kB / 433.6 MB, free: 19.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.3071, allocations: 1.875 kB / 433.6 MB, free: 19.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.3072, allocations: 55.64 kB / 433.6 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3072, allocations: 0 / 433.6 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.3073, allocations: 4.125 kB / 433.6 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.3073, allocations: 8.031 kB / 433.6 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.995e-05/0.3073, allocations: 27.02 kB / 433.7 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.3075, allocations: 184.8 kB / 433.8 MB, free: 19.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.165e-05/0.3075, allocations: 52.08 kB / 433.9 MB, free: 19.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.937e-05/0.3076, allocations: 39.14 kB / 433.9 MB, free: 19.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06552/0.3731, allocations: 41.39 MB / 475.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.3732, allocations: 35.38 kB / 475.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.3732, allocations: 0 / 475.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002539/0.3735, allocations: 127.3 kB / 475.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.3735, allocations: 51.41 kB / 475.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.928e-05/0.3736, allocations: 95.5 kB / 475.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.3736, allocations: 25.7 kB / 475.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.868e-05/0.3736, allocations: 88.17 kB / 475.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.3737, allocations: 46.39 kB / 475.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.3737, allocations: 22.86 kB / 475.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3738, allocations: 317.6 kB / 476.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.41e-05/0.3739, allocations: 30.11 kB / 476.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.3739, allocations: 25.52 kB / 476.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.025e-05/0.374, allocations: 61.94 kB / 476.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.374, allocations: 3.75 kB / 476.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001167/0.3741, allocations: 98.08 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.3741, allocations: 10.16 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3741, allocations: 0 / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3742, allocations: 0 / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.3742, allocations: 2.906 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3742, allocations: 2.188 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.409e-05/0.3742, allocations: 7.812 kB / 476.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.3742, allocations: 0.625 kB / 476.4 MB, free: 12.75 MB / 350.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.849e-05/0.3743, allocations: 113.3 kB / 476.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.277e-05/0.3743, allocations: 3.906 kB / 476.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.3745, allocations: 160.6 kB / 476.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3745, allocations: 4.781 kB / 476.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3745, allocations: 0 / 476.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3745, allocations: 5.781 kB / 476.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.3747, allocations: 172 kB / 476.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3747, allocations: 0 / 476.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.3747, allocations: 4.031 kB / 476.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3747, allocations: 3.562 kB / 476.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.3747, allocations: 0 / 476.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3747, allocations: 0 / 476.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3747, allocations: 0 / 476.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.695e-05/0.3748, allocations: 101.4 kB / 476.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.3748, allocations: 77.11 kB / 477 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.3749, allocations: 7.578 kB / 477 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.06e-05/0.3749, allocations: 4.031 kB / 477 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.3749, allocations: 3.562 kB / 477 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3749, allocations: 5.344 kB / 477 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.555e-05/0.375, allocations: 99.83 kB / 477.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.375, allocations: 0 / 477.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002826/0.3778, allocations: 0.8615 MB / 478 MB, free: 11.88 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: 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.005512/0.3833, allocations: 1.889 MB / 479.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.3835, allocations: 57.14 kB / 479.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3835, allocations: 0 / 479.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.758e-05/0.3835, allocations: 19.8 kB / 479.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.384, allocations: 68.55 kB / 480 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.3868, allocations: 1.652 MB / 481.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.387, allocations: 0.6845 MB / 482.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.407e-05/0.3871, allocations: 3.938 kB / 482.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.3871, allocations: 15.12 kB / 482.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3871, allocations: 0 / 482.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05173/0.4389, allocations: 25.77 MB / 0.4962 GB, free: 460 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.385/8.824, allocations: 8.062 kB / 0.4962 GB, free: 452 kB / 366.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)