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.005024/0.005024, allocations: 99.81 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.001246/0.001246, allocations: 192.4 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.423/1.423, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04669/0.04669, allocations: 9.099 MB / 279 MB, free: 12.07 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.001755/0.001755, allocations: 71.89 kB / 387 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2613, allocations: 48.16 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport): time 0.01972/0.2811, allocations: 17.4 MB / 452.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.2912, allocations: 10.09 MB / 462.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.2914, allocations: 0 / 462.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000877/0.2923, allocations: 314.5 kB / 462.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.2927, allocations: 142.5 kB / 463 MB, free: 1.922 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.01441/0.3071, allocations: 5.851 MB / 468.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.3074, allocations: 166.5 kB / 469.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.637e-05/0.3075, allocations: 6.812 kB / 469.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.3077, allocations: 85.73 kB / 469.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.789e-05/0.3078, allocations: 48.72 kB / 469.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.3078, allocations: 4.812 kB / 469.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01479/0.3226, allocations: 9.02 MB / 478.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.874e-05/0.3227, allocations: 23.92 kB / 478.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.3228, allocations: 47.78 kB / 478.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.333, allocations: 3.503 MB / 481.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.333, allocations: 0 / 481.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3331, allocations: 0 / 481.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3331, allocations: 0 / 481.8 MB, free: 1.988 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.0018/0.3349, allocations: 0.8269 MB / 482.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3349, allocations: 8.031 kB / 482.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.335, allocations: 34.56 kB / 482.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.335, allocations: 11.95 kB / 482.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.3352, allocations: 194.8 kB / 482.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.3352, allocations: 8 kB / 482.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.3352, allocations: 4 kB / 482.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.3355, allocations: 113.6 kB / 483 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.016e-06/0.3355, allocations: 0 / 483 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3356, allocations: 4 kB / 483 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.3356, allocations: 7.984 kB / 483 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.336, allocations: 135.9 kB / 483.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.3365, allocations: 360.7 kB / 483.5 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.3368, allocations: 106.5 kB / 483.6 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.3371, allocations: 92.95 kB / 483.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.3487, allocations: 8.378 MB / 492.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.3487, allocations: 34.56 kB / 492.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.585e-06/0.3487, allocations: 3.938 kB / 492.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008297/0.3496, allocations: 289.7 kB / 492.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.3496, allocations: 51.41 kB / 492.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.3498, allocations: 137.4 kB / 492.6 MB, free: 5.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3498, allocations: 25.7 kB / 492.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.433e-05/0.3498, allocations: 92.36 kB / 492.7 MB, free: 5.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.702e-05/0.3499, allocations: 47.64 kB / 492.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.163e-05/0.35, allocations: 25.7 kB / 492.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3501, allocations: 322.8 kB / 493.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.3503, allocations: 71.95 kB / 493.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.3505, allocations: 75.94 kB / 493.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.3509, allocations: 172.7 kB / 493.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3509, allocations: 0 / 493.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000462/0.3514, allocations: 201.5 kB / 493.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3514, allocations: 7.984 kB / 493.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3514, allocations: 4 kB / 493.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.3515, allocations: 0 / 493.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3516, allocations: 19.98 kB / 493.6 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3516, allocations: 0 / 493.6 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3517, allocations: 19.91 kB / 493.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.3518, allocations: 4 kB / 493.6 MB, free: 4.371 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 7.861e-05/0.3519, allocations: 125.7 kB / 493.8 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.219e-05/0.3519, allocations: 15.91 kB / 493.8 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005582/0.3525, allocations: 218.3 kB / 494 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3525, allocations: 0 / 494 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3525, allocations: 4 kB / 494 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3525, allocations: 7.984 kB / 494 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.3527, allocations: 213.5 kB / 494.2 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3527, allocations: 0 / 494.2 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/0.3529, allocations: 23.97 kB / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3529, allocations: 0 / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.3529, allocations: 0 / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3529, allocations: 7.938 kB / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3529, allocations: 0 / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005009/0.3534, allocations: 311.2 kB / 494.5 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.3535, allocations: 101 kB / 494.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.3536, allocations: 8 kB / 494.6 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.3537, allocations: 15.97 kB / 494.7 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.3538, allocations: 11.98 kB / 494.7 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.3538, allocations: 4 kB / 494.7 MB, free: 3.227 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.67e-05/0.3538, allocations: 99.27 kB / 494.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3539, allocations: 0 / 494.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001754/0.3556, allocations: 0.7358 MB / 495.5 MB, free: 2.391 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.004097/0.3597, allocations: 1.984 MB / 497.5 MB, free: 396 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005545/0.3603, allocations: 175.8 kB / 497.7 MB, free: 220 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3603, allocations: 0 / 497.7 MB, free: 220 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.3606, allocations: 91.94 kB / 497.8 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.361, allocations: 40.73 kB / 497.8 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.3624, allocations: 0.6092 MB / 498.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.3627, allocations: 0.7002 MB / 499.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.805e-05/0.3627, allocations: 7.938 kB / 499.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.641e-05/0.3628, allocations: 31.42 kB / 499.1 MB, free: 14.67 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3628, allocations: 0 / 499.1 MB, free: 14.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/0.4144, allocations: 25.8 MB / 0.5126 GB, free: 4.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.088/9.502, allocations: 16.25 kB / 0.5127 GB, free: 4.859 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)