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.001096/0.001096, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.445/1.445, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04628/0.04628, allocations: 9.089 MB / 278.9 MB, free: 12.2 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.001378/0.001378, allocations: 71.83 kB / 338.1 MB, free: 25.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07298/0.07437, allocations: 48.16 MB / 386.3 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pT_parameter_Transport): time 0.01964/0.09406, allocations: 17.3 MB / 403.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.1075, allocations: 14.25 MB / 417.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.289e-05/0.1076, allocations: 8 kB / 417.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009095/0.1086, allocations: 375.6 kB / 418.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002884/0.1115, allocations: 1.543 MB / 419.8 MB, free: 7.543 MB / 318.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.01216/0.1236, allocations: 4.789 MB / 424.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.1239, allocations: 159.1 kB / 424.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.23e-05/0.1239, allocations: 9.062 kB / 424.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.1241, allocations: 59.73 kB / 424.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.1241, allocations: 47.72 kB / 424.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.1242, allocations: 4 kB / 424.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1818/0.3059, allocations: 9.717 MB / 434.6 MB, free: 19.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.306, allocations: 14.36 kB / 434.6 MB, free: 19.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.3062, allocations: 51.62 kB / 434.6 MB, free: 19.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.3176, allocations: 3.796 MB / 438.4 MB, free: 19.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3176, allocations: 0 / 438.4 MB, free: 19.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3176, allocations: 2.375 kB / 438.4 MB, free: 19.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3176, allocations: 1.375 kB / 438.4 MB, free: 19.02 MB / 318.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.00169/0.3193, allocations: 0.831 MB / 439.2 MB, free: 18.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3194, allocations: 10.09 kB / 439.3 MB, free: 18.42 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.3194, allocations: 46.22 kB / 439.3 MB, free: 18.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.3195, allocations: 17.84 kB / 439.3 MB, free: 18.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.052e-05/0.3196, allocations: 182.8 kB / 439.5 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3196, allocations: 5.25 kB / 439.5 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.3197, allocations: 3.906 kB / 439.5 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.3199, allocations: 226.1 kB / 439.7 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.3199, allocations: 0.75 kB / 439.7 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.32, allocations: 1.281 kB / 439.7 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.32, allocations: 6.062 kB / 439.7 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.3204, allocations: 428.5 kB / 440.2 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.3206, allocations: 308.4 kB / 440.5 MB, free: 17.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.3208, allocations: 225.4 kB / 440.7 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.321, allocations: 215.6 kB / 440.9 MB, free: 17.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.3343, allocations: 10.02 MB / 450.9 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3343, allocations: 31.88 kB / 450.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.495e-06/0.3343, allocations: 4 kB / 450.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006189/0.335, allocations: 0.5878 MB / 451.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.335, allocations: 53.28 kB / 451.6 MB, free: 8.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.571e-05/0.335, allocations: 92.11 kB / 451.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.527e-06/0.3351, allocations: 30.05 kB / 451.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.286e-05/0.3351, allocations: 82.53 kB / 451.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.411e-05/0.3352, allocations: 134.5 kB / 451.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/0.3352, allocations: 38.45 kB / 452 MB, free: 8.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.3353, allocations: 329.8 kB / 452.3 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.3354, allocations: 161.6 kB / 452.4 MB, free: 7.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3355, allocations: 164.2 kB / 452.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.3359, allocations: 379.8 kB / 453 MB, free: 7.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3359, allocations: 0 / 453 MB, free: 7.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003579/0.3363, allocations: 406 kB / 453.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3363, allocations: 4.125 kB / 453.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3363, allocations: 2.906 kB / 453.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3363, allocations: 0 / 453.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.431e-05/0.3364, allocations: 23.2 kB / 453.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3364, allocations: 0.875 kB / 453.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.352e-05/0.3365, allocations: 17.47 kB / 453.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3365, allocations: 4.312 kB / 453.4 MB, free: 7.871 MB / 318.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 6.983e-05/0.3366, allocations: 120.3 kB / 453.5 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.3366, allocations: 13.31 kB / 453.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005172/0.3371, allocations: 0.6189 MB / 454.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3372, allocations: 3.844 kB / 454.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3372, allocations: 0.9062 kB / 454.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3372, allocations: 6.656 kB / 454.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.3379, allocations: 0.8976 MB / 455.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3379, allocations: 3.594 kB / 455.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.564e-05/0.3379, allocations: 29.08 kB / 455.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3379, allocations: 0 / 455.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.338, allocations: 6.406 kB / 455.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.338, allocations: 8.484 kB / 455.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.338, allocations: 10.56 kB / 455.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000205/0.3382, allocations: 257.5 kB / 455.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.429e-05/0.3382, allocations: 92.23 kB / 455.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.3383, allocations: 14.09 kB / 455.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.208e-05/0.3383, allocations: 7.969 kB / 455.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.3384, allocations: 18.2 kB / 455.5 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.3384, allocations: 7.438 kB / 455.5 MB, free: 6.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.3385, allocations: 177.8 kB / 455.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3385, allocations: 0 / 455.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002583/0.3411, allocations: 0.7936 MB / 456.5 MB, free: 6.391 MB / 318.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.003773/0.3449, allocations: 2.039 MB / 458.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003091/0.3452, allocations: 297.1 kB / 458.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3452, allocations: 0 / 458.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.847e-05/0.3453, allocations: 75.66 kB / 458.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.3459, allocations: 88.11 kB / 459 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3484, allocations: 2.823 MB / 461.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.3485, allocations: 0.7014 MB / 462.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.873e-05/0.3486, allocations: 26.98 kB / 462.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.196e-05/0.3486, allocations: 40.58 kB / 462.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3486, allocations: 0 / 462.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05664/0.4053, allocations: 29.24 MB / 491.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.003/9.408, allocations: 0.75 kB / 491.8 MB, free: 7.012 MB / 350.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)