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.005253/0.005253, allocations: 104.2 kB / 15.73 MB, free: 5.953 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: 190.2 kB / 16.67 MB, free: 5.871 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.406/1.406, allocations: 205.1 MB / 222.6 MB, free: 4.465 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05204/0.05204, allocations: 9.092 MB / 279 MB, free: 12.02 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.002144/0.002144, allocations: 75.88 kB / 387 MB, free: 8.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2445, allocations: 48.17 MB / 435.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter): time 0.01849/0.263, allocations: 16.98 MB / 452.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.2748, allocations: 11.09 MB / 463.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.2749, allocations: 1.219 kB / 463.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007133/0.2756, allocations: 268.9 kB / 463.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.547e-05/0.2757, allocations: 35.66 kB / 463.5 MB, free: 1.512 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: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.01446/0.2902, allocations: 5.782 MB / 469.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.2903, allocations: 88.48 kB / 469.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.2904, allocations: 2.812 kB / 469.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.389e-05/0.2905, allocations: 35.39 kB / 469.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.663e-05/0.2905, allocations: 24.16 kB / 469.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.2905, allocations: 0 / 469.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01523/0.3058, allocations: 8.639 MB / 478.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.3058, allocations: 7.938 kB / 478.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.824e-05/0.3059, allocations: 19.92 kB / 478.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008352/0.3142, allocations: 3.659 MB / 481.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3143, allocations: 0 / 481.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3143, allocations: 0 / 481.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.3143, allocations: 0 / 481.7 MB, free: 2.059 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001608/0.3159, allocations: 0.8192 MB / 482.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.316, allocations: 12.03 kB / 482.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.785e-05/0.316, allocations: 42.48 kB / 482.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.718e-05/0.3161, allocations: 11.88 kB / 482.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3162, allocations: 167 kB / 482.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.3162, allocations: 4 kB / 482.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.3162, allocations: 4 kB / 482.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.3164, allocations: 53.69 kB / 482.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3164, allocations: 0 / 482.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-06/0.3164, allocations: 0 / 482.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3164, allocations: 3.984 kB / 482.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.52e-05/0.3165, allocations: 31.88 kB / 482.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.3167, allocations: 181.7 kB / 483.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.518e-05/0.3168, allocations: 46.56 kB / 483.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.211e-05/0.3168, allocations: 36.89 kB / 483.1 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07077/0.3876, allocations: 41.4 MB / 0.5123 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.922e-05/0.3877, allocations: 38.44 kB / 0.5123 GB, free: 15.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.825e-06/0.3877, allocations: 0 / 0.5123 GB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003036/0.388, allocations: 125.6 kB / 0.5124 GB, free: 15.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.388, allocations: 51.41 kB / 0.5125 GB, free: 15.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.3881, allocations: 101.8 kB / 0.5126 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.3882, allocations: 29.86 kB / 0.5126 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.3882, allocations: 80.14 kB / 0.5127 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.3883, allocations: 39.64 kB / 0.5127 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.3883, allocations: 25.7 kB / 0.5127 GB, free: 15.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3885, allocations: 314.8 kB / 0.513 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.3885, allocations: 23.98 kB / 0.5131 GB, free: 14.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.476e-05/0.3885, allocations: 28.36 kB / 0.5131 GB, free: 14.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.194e-05/0.3886, allocations: 72.86 kB / 0.5131 GB, free: 14.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3887, allocations: 4.031 kB / 0.5132 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001277/0.3888, allocations: 93.67 kB / 0.5132 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.3888, allocations: 11.94 kB / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3888, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3888, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3889, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3889, allocations: 0 / 0.5133 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.023e-05/0.3889, allocations: 7.891 kB / 0.5133 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.3889, allocations: 4 kB / 0.5133 GB, free: 14.66 MB / 414.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 9.538e-05/0.389, allocations: 117.9 kB / 0.5134 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.389, allocations: 11.89 kB / 0.5134 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.3893, allocations: 155.6 kB / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3893, allocations: 0 / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3893, allocations: 0 / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3893, allocations: 0 / 0.5135 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.3895, allocations: 177.5 kB / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3895, allocations: 0 / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3895, allocations: 0 / 0.5137 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3895, allocations: 7.969 kB / 0.5137 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.3895, allocations: 3.938 kB / 0.5137 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.3895, allocations: 7.984 kB / 0.5137 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3895, allocations: 0 / 0.5137 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.3897, allocations: 89.02 kB / 0.5138 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.3897, allocations: 81.05 kB / 0.5139 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.3897, allocations: 12 kB / 0.5139 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.945e-05/0.3898, allocations: 0 / 0.5139 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.3898, allocations: 4.031 kB / 0.5139 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.3898, allocations: 0 / 0.5139 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.119e-05/0.3899, allocations: 99.27 kB / 0.514 GB, free: 13.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3899, allocations: 0 / 0.514 GB, free: 13.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001922/0.3918, allocations: 0.8839 MB / 0.5149 GB, free: 12.89 MB / 414.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.003645/0.3955, allocations: 1.894 MB / 0.5167 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.3956, allocations: 52.2 kB / 0.5168 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3956, allocations: 3.938 kB / 0.5168 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.464e-05/0.3956, allocations: 19.98 kB / 0.5168 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.3961, allocations: 56 kB / 0.5168 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.3979, allocations: 1.664 MB / 0.5185 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.3982, allocations: 0.6885 MB / 0.5191 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.65e-05/0.3983, allocations: 4.094 kB / 0.5191 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.939e-05/0.3983, allocations: 15.44 kB / 0.5192 GB, free: 8.355 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3983, allocations: 0 / 0.5192 GB, free: 8.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05914/0.4574, allocations: 25.77 MB / 0.5443 GB, free: 14.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.978/9.436, allocations: 7.984 kB / 0.5443 GB, free: 14.56 MB / 446.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)