Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.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_Transport,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter_Transport",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pT_parameter_Transport",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.004765/0.004765, allocations: 100.9 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.001287/0.001287, allocations: 192.5 kB / 16.67 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.418/1.418, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05242/0.05242, allocations: 9.104 MB / 279 MB, free: 12.05 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.002102/0.002102, allocations: 75.88 kB / 387 MB, free: 8.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2436, allocations: 48.15 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport): time 0.01825/0.2619, allocations: 17.3 MB / 452.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.2772, allocations: 14.25 MB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.2774, allocations: 5.094 kB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.2787, allocations: 376.1 kB / 467 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003495/0.2822, allocations: 1.546 MB / 468.6 MB, free: 13.81 MB / 350.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/Transport/thermalConductivity_dilute.mo:2:1-75:31:writable] Warning: Pure function 'HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.Medium.Transport.thermalConductivity_dilute' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.01277/0.295, allocations: 4.806 MB / 473.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.2952, allocations: 143.2 kB / 473.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.2953, allocations: 9.125 kB / 473.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2954, allocations: 63.66 kB / 473.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.352e-05/0.2955, allocations: 47.72 kB / 473.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.2955, allocations: 4 kB / 473.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01774/0.3133, allocations: 9.841 MB / 483.5 MB, free: 304 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.3133, allocations: 11.94 kB / 483.5 MB, free: 292 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3134, allocations: 55.67 kB / 483.6 MB, free: 236 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.3236, allocations: 3.811 MB / 487.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3237, allocations: 4 kB / 487.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3237, allocations: 0 / 487.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3237, allocations: 4 kB / 487.4 MB, free: 12.4 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001642/0.3253, allocations: 0.8655 MB / 488.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3254, allocations: 8.031 kB / 488.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.3255, allocations: 42.55 kB / 488.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.3256, allocations: 19.91 kB / 488.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3257, allocations: 182.8 kB / 488.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.3258, allocations: 4 kB / 488.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.3258, allocations: 8 kB / 488.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.3261, allocations: 226.5 kB / 488.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3261, allocations: 3.938 kB / 488.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3261, allocations: 4 kB / 488.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3262, allocations: 0 / 488.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004778/0.3266, allocations: 428.1 kB / 489.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003351/0.327, allocations: 303.2 kB / 489.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.3273, allocations: 226.8 kB / 489.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.3275, allocations: 213.1 kB / 489.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01673/0.3442, allocations: 10.02 MB / 499.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.3443, allocations: 42.44 kB / 499.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.986e-06/0.3443, allocations: 4 kB / 499.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008513/0.3452, allocations: 0.5813 MB / 0.4888 GB, free: 13.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.3453, allocations: 51.41 kB / 0.4888 GB, free: 13.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.014e-05/0.3454, allocations: 97.84 kB / 0.4889 GB, free: 13.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.3454, allocations: 29.7 kB / 0.489 GB, free: 13.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.877e-05/0.3454, allocations: 80.8 kB / 0.489 GB, free: 12.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.3456, allocations: 146.7 kB / 0.4892 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.756e-05/0.3457, allocations: 33.7 kB / 0.4892 GB, free: 12.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3458, allocations: 331 kB / 0.4895 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.346, allocations: 159.9 kB / 0.4897 GB, free: 12.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3462, allocations: 167.8 kB / 0.4898 GB, free: 12.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.3466, allocations: 367.6 kB / 0.4902 GB, free: 11.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3466, allocations: 0 / 0.4902 GB, free: 11.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005096/0.3472, allocations: 414.9 kB / 0.4906 GB, free: 11.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3472, allocations: 4 kB / 0.4906 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3472, allocations: 0 / 0.4906 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3472, allocations: 0 / 0.4906 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.75e-05/0.3473, allocations: 23.94 kB / 0.4906 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.3473, allocations: 7.984 kB / 0.4906 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.282e-05/0.3474, allocations: 19.77 kB / 0.4906 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.3474, allocations: 4 kB / 0.4906 GB, free: 11.32 MB / 382.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 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 11 * 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.967e-05/0.3475, allocations: 121.8 kB / 0.4908 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.3476, allocations: 15.84 kB / 0.4908 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007679/0.3483, allocations: 0.6127 MB / 0.4914 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3484, allocations: 4 kB / 0.4914 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3484, allocations: 11.88 kB / 0.4914 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3484, allocations: 0 / 0.4914 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3494, allocations: 0.9008 MB / 0.4923 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3494, allocations: 4 kB / 0.4923 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.226e-05/0.3495, allocations: 23.98 kB / 0.4923 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.3495, allocations: 4 kB / 0.4923 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.3495, allocations: 4 kB / 0.4923 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.3496, allocations: 11.88 kB / 0.4923 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3496, allocations: 0 / 0.4923 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.3499, allocations: 269.8 kB / 0.4926 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.573e-05/0.35, allocations: 85.05 kB / 0.4927 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.027e-05/0.35, allocations: 19.88 kB / 0.4927 GB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.266e-05/0.3501, allocations: 7.938 kB / 0.4927 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.3501, allocations: 11.98 kB / 0.4927 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.3501, allocations: 8 kB / 0.4927 GB, free: 8.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.3503, allocations: 175.2 kB / 0.4929 GB, free: 8.781 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3503, allocations: 0 / 0.4929 GB, free: 8.781 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002285/0.3526, allocations: 0.8059 MB / 0.4937 GB, free: 7.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (11): * Single equations (assignments): 11 * 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.00473/0.3574, allocations: 2.075 MB / 0.4957 GB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.3579, allocations: 291.8 kB / 0.496 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.3579, allocations: 0 / 0.496 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.358, allocations: 75.84 kB / 0.496 GB, free: 5.484 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.3587, allocations: 88.52 kB / 0.4961 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.3626, allocations: 2.831 MB / 0.4989 GB, free: 2.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.363, allocations: 0.7083 MB / 0.4996 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.3631, allocations: 16.86 kB / 0.4996 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.35e-05/0.3632, allocations: 43.42 kB / 0.4996 GB, free: 1.625 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3632, allocations: 0 / 0.4996 GB, free: 1.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06507/0.4283, allocations: 29.26 MB / 0.5282 GB, free: 4.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.516/9.944, allocations: 7.938 kB / 0.5282 GB, free: 4.379 MB / 414.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport_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_Transport.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport.pipe 2>&1)