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.005876/0.005882, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.001305/0.001305, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.421/1.421, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05228/0.05228, allocations: 9.098 MB / 279 MB, free: 12.09 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.002098/0.002098, allocations: 70.17 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2295, allocations: 48.16 MB / 435.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.01718/0.2467, allocations: 16.84 MB / 452 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.257, allocations: 9.747 MB / 461.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.218e-05/0.257, allocations: 1.219 kB / 461.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007009/0.2578, allocations: 251.7 kB / 461.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.121e-05/0.2578, allocations: 26.19 kB / 462 MB, free: 2.664 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.01241/0.2703, allocations: 5.08 MB / 467.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.2704, allocations: 50.27 kB / 467.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.905e-05/0.2704, allocations: 2.562 kB / 467.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2705, allocations: 25.2 kB / 467.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.552e-05/0.2706, allocations: 11.72 kB / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-06/0.2706, allocations: 0 / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01286/0.2835, allocations: 7.85 MB / 475 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.164e-05/0.2835, allocations: 4 kB / 475 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.2836, allocations: 15.94 kB / 475 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00654/0.2901, allocations: 3.304 MB / 478.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2901, allocations: 4 kB / 478.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.287e-06/0.2901, allocations: 4 kB / 478.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2902, allocations: 3.938 kB / 478.3 MB, free: 5.375 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.001186/0.2913, allocations: 0.7106 MB / 479 MB, free: 4.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2914, allocations: 8.031 kB / 479 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.161e-05/0.2914, allocations: 34.56 kB / 479.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.2915, allocations: 7.953 kB / 479.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.2916, allocations: 171 kB / 479.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2916, allocations: 0 / 479.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.2916, allocations: 0 / 479.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.2917, allocations: 45.64 kB / 479.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.2918, allocations: 0 / 479.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.2918, allocations: 0 / 479.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2918, allocations: 0 / 479.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.152e-05/0.2918, allocations: 19.98 kB / 479.3 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.292, allocations: 161.6 kB / 479.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.121e-05/0.2921, allocations: 38.5 kB / 479.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.169e-05/0.2921, allocations: 16.89 kB / 479.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02701/0.3191, allocations: 14.01 MB / 493.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.3192, allocations: 30.56 kB / 493.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.284e-06/0.3192, allocations: 0 / 493.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.000214/0.3194, allocations: 81.62 kB / 493.6 MB, free: 3.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.3195, allocations: 51.41 kB / 493.7 MB, free: 3.422 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.118e-05/0.3196, allocations: 101.8 kB / 493.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3196, allocations: 25.7 kB / 493.8 MB, free: 3.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.649e-05/0.3196, allocations: 80.14 kB / 493.9 MB, free: 3.199 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.3197, allocations: 23.78 kB / 493.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.3197, allocations: 13.72 kB / 493.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3199, allocations: 322.8 kB / 494.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/0.3199, allocations: 11.94 kB / 494.3 MB, free: 2.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.624e-05/0.3199, allocations: 11.94 kB / 494.3 MB, free: 2.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.806e-05/0.32, allocations: 37 kB / 494.3 MB, free: 2.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.32, allocations: 4 kB / 494.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.057e-05/0.3201, allocations: 61.67 kB / 494.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3201, allocations: 4 kB / 494.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3201, allocations: 0 / 494.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3201, allocations: 4 kB / 494.4 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.3201, allocations: 0 / 494.4 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3201, allocations: 0 / 494.4 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.311e-05/0.3202, allocations: 7.891 kB / 494.4 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.3202, allocations: 0 / 494.4 MB, free: 2.684 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 8.885e-05/0.3203, allocations: 121.9 kB / 494.5 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-06/0.3203, allocations: 3.938 kB / 494.5 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.3205, allocations: 166.9 kB / 494.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/0.3206, allocations: 180.3 kB / 494.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.097e-05/0.3206, allocations: 184.2 kB / 495 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.25e-05/0.3207, allocations: 180.2 kB / 495.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.321, allocations: 425 kB / 495.6 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.595e-05/0.321, allocations: 101 kB / 495.7 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-05/0.3211, allocations: 101 kB / 495.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.857e-05/0.3212, allocations: 188.2 kB / 496 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-05/0.3213, allocations: 176.3 kB / 496.2 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.578e-05/0.3213, allocations: 192.2 kB / 496.4 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.342e-05/0.3214, allocations: 180.2 kB / 496.5 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.3216, allocations: 311.7 kB / 496.8 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.361e-05/0.3217, allocations: 178.1 kB / 497 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.446e-05/0.3218, allocations: 184.2 kB / 497.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-05/0.3219, allocations: 105 kB / 497.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.322, allocations: 184.1 kB / 497.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.322, allocations: 117 kB / 497.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.815e-05/0.3221, allocations: 95.27 kB / 497.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.894e-06/0.3221, allocations: 0 / 497.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001771/0.3239, allocations: 0.7593 MB / 498.4 MB, free: 14.38 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.003385/0.3273, allocations: 1.919 MB / 0.4886 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.542e-05/0.3274, allocations: 20 kB / 0.4887 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3274, allocations: 0 / 0.4887 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.222e-06/0.3274, allocations: 7.938 kB / 0.4887 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.328, allocations: 488.2 kB / 0.4891 GB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.3298, allocations: 1.7 MB / 0.4908 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3301, allocations: 0.6805 MB / 0.4915 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.054e-05/0.3301, allocations: 0 / 0.4915 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.3301, allocations: 15.44 kB / 0.4915 GB, free: 9.414 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3302, allocations: 4.031 kB / 0.4915 GB, free: 9.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05511/0.3853, allocations: 23.27 MB / 0.5142 GB, free: 2.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.74/9.126, allocations: 7.922 kB / 0.5142 GB, free: 2.113 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)