Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_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.ConvergenceTest.SinglePhase_Transport,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_Transport",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_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.004911/0.004911, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001324/0.001324, allocations: 201.7 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.44/1.44, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05203/0.05203, allocations: 9.099 MB / 279 MB, free: 12.1 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.002116/0.002116, allocations: 67.91 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2369, allocations: 48.16 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport): time 0.01895/0.2559, allocations: 17.41 MB / 452.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.2672, allocations: 10.09 MB / 462.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2674, allocations: 0 / 462.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008011/0.2682, allocations: 278 kB / 462.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004332/0.2687, allocations: 136 kB / 463 MB, free: 1.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'. [/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.ConvergenceTest.SinglePhase_Transport.Medium.Transport.thermalConductivity_dilute' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.01592/0.2846, allocations: 5.565 MB / 468.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.2848, allocations: 157.5 kB / 468.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.2849, allocations: 7.938 kB / 468.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.2851, allocations: 87.72 kB / 468.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.213e-05/0.2852, allocations: 49.56 kB / 468.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.2852, allocations: 4.156 kB / 468.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01596/0.3012, allocations: 9.019 MB / 477.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.3013, allocations: 23.92 kB / 477.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.3014, allocations: 43.8 kB / 478 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.3121, allocations: 3.503 MB / 481.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3121, allocations: 0 / 481.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3121, allocations: 0 / 481.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.3121, allocations: 3.984 kB / 481.5 MB, free: 2.324 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.00185/0.314, allocations: 0.8308 MB / 482.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.314, allocations: 8.031 kB / 482.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.358e-05/0.3141, allocations: 38.56 kB / 482.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.3141, allocations: 11.95 kB / 482.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.3143, allocations: 182.8 kB / 482.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3143, allocations: 8 kB / 482.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.3144, allocations: 0 / 482.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003382/0.3147, allocations: 121.5 kB / 482.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3147, allocations: 0 / 482.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.3147, allocations: 4 kB / 482.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3148, allocations: 4 kB / 482.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004328/0.3152, allocations: 143.9 kB / 482.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005016/0.3157, allocations: 348.8 kB / 483.2 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.316, allocations: 114.4 kB / 483.3 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.3163, allocations: 96.8 kB / 483.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/0.3288, allocations: 8.382 MB / 491.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3289, allocations: 30.56 kB / 491.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.925e-06/0.3289, allocations: 0 / 491.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008752/0.3298, allocations: 281.4 kB / 492.1 MB, free: 6.023 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.3298, allocations: 55.41 kB / 492.1 MB, free: 5.957 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.33, allocations: 137.4 kB / 492.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.33, allocations: 29.64 kB / 492.3 MB, free: 5.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.187e-05/0.3301, allocations: 92.36 kB / 492.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.3301, allocations: 47.58 kB / 492.4 MB, free: 5.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.3302, allocations: 29.7 kB / 492.4 MB, free: 5.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3304, allocations: 318.8 kB / 492.7 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.3306, allocations: 75.94 kB / 492.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3308, allocations: 75.94 kB / 492.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.3313, allocations: 164.7 kB / 493.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3313, allocations: 0 / 493.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005158/0.3318, allocations: 198 kB / 493.2 MB, free: 4.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3318, allocations: 9.094 kB / 493.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3319, allocations: 0 / 493.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3319, allocations: 0 / 493.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.332, allocations: 27.91 kB / 493.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.3321, allocations: 0 / 493.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3322, allocations: 15.92 kB / 493.3 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.3322, allocations: 11.98 kB / 493.3 MB, free: 4.707 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 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 0.0001033/0.3323, allocations: 125.7 kB / 493.4 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.3324, allocations: 15.89 kB / 493.4 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006227/0.333, allocations: 218.3 kB / 493.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.333, allocations: 4 kB / 493.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.333, allocations: 0 / 493.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.333, allocations: 4 kB / 493.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.3333, allocations: 217.5 kB / 493.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3333, allocations: 3.984 kB / 493.9 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.3335, allocations: 19.98 kB / 493.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3335, allocations: 0 / 493.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.3335, allocations: 4 kB / 493.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.3335, allocations: 3.984 kB / 493.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3335, allocations: 0 / 493.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.3341, allocations: 311.2 kB / 494.2 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.9e-05/0.3342, allocations: 96.98 kB / 494.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.3342, allocations: 8 kB / 494.3 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.3343, allocations: 15.92 kB / 494.3 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.3344, allocations: 15.98 kB / 494.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.3344, allocations: 0 / 494.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.412e-05/0.3345, allocations: 107.2 kB / 494.5 MB, free: 3.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3345, allocations: 0 / 494.5 MB, free: 3.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001782/0.3363, allocations: 0.7319 MB / 495.2 MB, free: 2.727 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: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.004121/0.3404, allocations: 1.974 MB / 497.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.341, allocations: 167.9 kB / 497.3 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.341, allocations: 4 kB / 497.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.3413, allocations: 91.88 kB / 497.4 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.3417, allocations: 44.72 kB / 497.5 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.3431, allocations: 0.6154 MB / 498.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3435, allocations: 0.7002 MB / 498.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.845e-05/0.3436, allocations: 7.938 kB / 498.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.308e-05/0.3436, allocations: 31.42 kB / 498.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3436, allocations: 0 / 498.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06001/0.4037, allocations: 25.8 MB / 0.5123 GB, free: 5.199 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.28/9.683, allocations: 4.5 kB / 0.5123 GB, free: 5.195 MB / 398.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_Transport.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.pipe 2>&1)