Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_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_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_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.0052/0.0052, allocations: 100 kB / 15.73 MB, free: 6.02 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.001351/0.001351, allocations: 187.6 kB / 16.67 MB, free: 5.934 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.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05273/0.05273, allocations: 9.096 MB / 279 MB, free: 12.04 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.002093/0.002093, allocations: 67.89 kB / 387 MB, free: 8.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2495, allocations: 48.16 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.01779/0.2673, allocations: 16.9 MB / 452 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006412/0.2738, allocations: 5.794 MB / 457.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.714e-05/0.2738, allocations: 5.188 kB / 457.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006805/0.2745, allocations: 266.2 kB / 458.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.061e-05/0.2746, allocations: 21.69 kB / 458.1 MB, free: 5.973 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'. Notification: Performance of NFTyping.typeClassSections: time 0.01131/0.2859, allocations: 4.112 MB / 462.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.286, allocations: 52.67 kB / 462.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.2861, allocations: 5.234 kB / 462.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.697e-05/0.2862, allocations: 34.55 kB / 462.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.32e-05/0.2862, allocations: 14.72 kB / 462.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.837e-06/0.2862, allocations: 1.219 kB / 462.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01116/0.2974, allocations: 6.856 MB / 469.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.498e-05/0.2974, allocations: 3.984 kB / 469.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.515e-05/0.2975, allocations: 15.94 kB / 469.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005733/0.3032, allocations: 2.856 MB / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3033, allocations: 0 / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3033, allocations: 0 / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.3033, allocations: 0 / 472 MB, free: 11.79 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.001008/0.3043, allocations: 0.6293 MB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3043, allocations: 8.031 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.3044, allocations: 42.5 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/0.3044, allocations: 3.953 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.3046, allocations: 167 kB / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.3046, allocations: 0 / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.3046, allocations: 4 kB / 472.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.836e-05/0.3047, allocations: 33.7 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3047, allocations: 4 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.3048, allocations: 3.938 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3048, allocations: 4 kB / 472.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.966e-05/0.3048, allocations: 15.98 kB / 473 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001839/0.305, allocations: 157.7 kB / 473.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.454e-05/0.3051, allocations: 34.52 kB / 473.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.934e-05/0.3051, allocations: 20.83 kB / 473.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01929/0.3244, allocations: 9.948 MB / 483.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.3245, allocations: 42.48 kB / 483.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/0.3245, allocations: 0 / 483.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002041/0.3247, allocations: 65.69 kB / 483.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.3248, allocations: 59.38 kB / 483.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.3249, allocations: 105.7 kB / 483.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3249, allocations: 25.7 kB / 483.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.107e-05/0.3249, allocations: 80.14 kB / 483.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.747e-05/0.325, allocations: 27.73 kB / 483.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.325, allocations: 17.72 kB / 483.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3252, allocations: 310.8 kB / 483.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.482e-05/0.3252, allocations: 16.11 kB / 483.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.1e-05/0.3252, allocations: 16 kB / 483.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.134e-05/0.3253, allocations: 33.14 kB / 483.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3253, allocations: 4 kB / 483.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.048e-05/0.3254, allocations: 69.55 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3254, allocations: 4 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3254, allocations: 4 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.3254, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3254, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.3255, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.3255, allocations: 4.062 kB / 484 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.3255, allocations: 0 / 484 MB, free: 13.9 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 7.759e-05/0.3256, allocations: 109.8 kB / 484.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.3256, allocations: 7.891 kB / 484.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001663/0.3258, allocations: 174.8 kB / 484.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.514e-05/0.3259, allocations: 184.2 kB / 484.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.108e-05/0.3259, allocations: 180.3 kB / 484.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.447e-05/0.326, allocations: 184.2 kB / 484.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.3263, allocations: 413.2 kB / 485.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.199e-05/0.3264, allocations: 105 kB / 485.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.946e-05/0.3264, allocations: 108.9 kB / 485.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.789e-05/0.3265, allocations: 176.3 kB / 485.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.474e-05/0.3266, allocations: 184.2 kB / 485.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.99e-05/0.3267, allocations: 184.2 kB / 485.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.44e-05/0.3268, allocations: 180.3 kB / 486.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.3269, allocations: 303.7 kB / 486.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.3271, allocations: 197.9 kB / 486.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.586e-05/0.3272, allocations: 184.3 kB / 486.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.112e-05/0.3273, allocations: 101 kB / 486.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.774e-05/0.3274, allocations: 184.2 kB / 487.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.3274, allocations: 109 kB / 487.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.71e-05/0.3275, allocations: 103.2 kB / 487.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3275, allocations: 0 / 487.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001581/0.3291, allocations: 0.6114 MB / 487.9 MB, free: 9.75 MB / 366.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.002853/0.3319, allocations: 1.678 MB / 489.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.223e-05/0.332, allocations: 23.92 kB / 489.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3321, allocations: 0 / 489.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-06/0.3321, allocations: 0 / 489.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005799/0.3326, allocations: 483.7 kB / 490.1 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.3343, allocations: 1.642 MB / 491.7 MB, free: 5.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.3346, allocations: 0.6768 MB / 492.4 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.002e-05/0.3346, allocations: 4.094 kB / 492.4 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.3346, allocations: 11.44 kB / 492.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3346, allocations: 0 / 492.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05105/0.3857, allocations: 20.94 MB / 0.5013 GB, free: 148 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.886, allocations: 12 kB / 0.5013 GB, free: 136 kB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_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_pd_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe 2>&1)