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.007381/0.007381, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.001668/0.001668, allocations: 196 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.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.06085/0.06085, allocations: 9.092 MB / 279 MB, free: 12.07 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.001423/0.001423, allocations: 66.41 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2576, allocations: 48.15 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.0181/0.2757, allocations: 16.89 MB / 452 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005624/0.2814, allocations: 5.802 MB / 457.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.826e-05/0.2814, allocations: 4 kB / 457.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007209/0.2821, allocations: 295.6 kB / 458.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.314e-05/0.2823, allocations: 30.42 kB / 458.1 MB, free: 5.945 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.01058/0.2929, allocations: 4.298 MB / 462.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.273e-05/0.293, allocations: 49.2 kB / 462.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.117e-05/0.293, allocations: 2.281 kB / 462.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.048e-05/0.2931, allocations: 37.8 kB / 462.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.728e-05/0.2931, allocations: 15.56 kB / 462.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-06/0.2932, allocations: 0 / 462.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0107/0.3039, allocations: 6.864 MB / 469.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.392e-05/0.3039, allocations: 0 / 469.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.304, allocations: 15.94 kB / 469.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0056/0.3096, allocations: 2.853 MB / 472.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3096, allocations: 0 / 472.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3096, allocations: 0 / 472.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3096, allocations: 0 / 472.3 MB, free: 11.57 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.001365/0.311, allocations: 0.6293 MB / 472.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.311, allocations: 12.03 kB / 472.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.932e-05/0.3111, allocations: 42.48 kB / 472.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.3111, allocations: 3.953 kB / 472.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.3113, allocations: 163 kB / 473.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.3113, allocations: 4 kB / 473.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.3113, allocations: 0 / 473.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.3114, allocations: 41.67 kB / 473.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3115, allocations: 4 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.3115, allocations: 7.938 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3115, allocations: 0 / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.488e-05/0.3115, allocations: 8 kB / 473.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001796/0.3117, allocations: 165.6 kB / 473.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.49e-05/0.3118, allocations: 34.52 kB / 473.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.3118, allocations: 28.81 kB / 473.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01859/0.3304, allocations: 9.944 MB / 483.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3305, allocations: 38.5 kB / 483.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.3305, allocations: 0 / 483.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.000221/0.3307, allocations: 69.62 kB / 483.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.3307, allocations: 55.44 kB / 483.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.432e-05/0.3308, allocations: 105.8 kB / 483.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3309, allocations: 25.7 kB / 483.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.128e-05/0.3309, allocations: 84.12 kB / 483.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.656e-05/0.3309, allocations: 23.75 kB / 483.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.331, allocations: 21.7 kB / 483.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3311, allocations: 310.8 kB / 484.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.91e-05/0.3311, allocations: 8.125 kB / 484.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.993e-05/0.3311, allocations: 20 kB / 484.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.705e-05/0.3312, allocations: 37.14 kB / 484.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3312, allocations: 0 / 484.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.858e-05/0.3313, allocations: 65.56 kB / 484.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3313, allocations: 8 kB / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3313, allocations: 0 / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3313, allocations: 0 / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.3314, allocations: 0 / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.3314, allocations: 0 / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.961e-05/0.3314, allocations: 0 / 484.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.3314, allocations: 8.047 kB / 484.2 MB, free: 13.68 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.328e-05/0.3315, allocations: 109.8 kB / 484.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.3315, allocations: 7.891 kB / 484.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.3316, allocations: 170.8 kB / 484.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.787e-05/0.3317, allocations: 188.2 kB / 484.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.518e-05/0.3318, allocations: 180.3 kB / 484.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.174e-05/0.3319, allocations: 184.2 kB / 485 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.3321, allocations: 409.2 kB / 485.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.183e-05/0.3321, allocations: 101 kB / 485.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.366e-05/0.3322, allocations: 112.9 kB / 485.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.432e-05/0.3322, allocations: 180.2 kB / 485.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.408e-05/0.3323, allocations: 188.2 kB / 486 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.057e-05/0.3324, allocations: 180.2 kB / 486.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.141e-05/0.3324, allocations: 176.3 kB / 486.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.3326, allocations: 311.7 kB / 486.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.545e-05/0.3326, allocations: 193.9 kB / 486.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.3327, allocations: 184.3 kB / 487 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.479e-05/0.3328, allocations: 101 kB / 487.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/0.3329, allocations: 188.2 kB / 487.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.3329, allocations: 105 kB / 487.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.077e-05/0.333, allocations: 99.27 kB / 487.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.333, allocations: 0 / 487.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001583/0.3346, allocations: 0.6075 MB / 488.1 MB, free: 9.531 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.002624/0.3372, allocations: 1.686 MB / 489.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.811e-05/0.3373, allocations: 15.94 kB / 489.8 MB, free: 7.801 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3373, allocations: 4 kB / 489.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.437e-06/0.3373, allocations: 4 kB / 489.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.3378, allocations: 485 kB / 490.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3393, allocations: 1.638 MB / 491.9 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.3396, allocations: 0.6729 MB / 492.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.501e-05/0.3396, allocations: 12.08 kB / 492.6 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.493e-05/0.3396, allocations: 11.42 kB / 492.6 MB, free: 4.871 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3396, allocations: 4 kB / 492.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04487/0.3845, allocations: 20.93 MB / 0.5015 GB, free: 15.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.437/8.821, allocations: 12 kB / 0.5015 GB, free: 15.91 MB / 398.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)