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.008458/0.008458, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.001448/0.001448, allocations: 198.6 kB / 16.68 MB, free: 5.98 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.542/1.542, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04925/0.04925, allocations: 9.096 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.001534/0.001534, allocations: 67.91 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3034, allocations: 48.16 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport): time 0.01935/0.3228, allocations: 17.41 MB / 452.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3337, allocations: 10.09 MB / 462.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.3339, allocations: 1.5 kB / 462.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.335, allocations: 301.8 kB / 462.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005549/0.3356, allocations: 150.3 kB / 463.1 MB, free: 1.93 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.01874/0.3543, allocations: 5.847 MB / 468.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.3546, allocations: 161.8 kB / 469.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.3547, allocations: 10.88 kB / 469.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.3549, allocations: 94.16 kB / 469.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.355, allocations: 44.56 kB / 469.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.3551, allocations: 4.688 kB / 469.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01683/0.3719, allocations: 9.025 MB / 478.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.148e-05/0.372, allocations: 19.86 kB / 478.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.3721, allocations: 43.81 kB / 478.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.3837, allocations: 3.503 MB / 481.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3838, allocations: 0 / 481.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3838, allocations: 0 / 481.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3838, allocations: 4 kB / 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.002235/0.386, allocations: 0.823 MB / 482.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.3861, allocations: 12.03 kB / 482.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.453e-05/0.3862, allocations: 38.55 kB / 482.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.3862, allocations: 11.95 kB / 482.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.3864, allocations: 190.6 kB / 482.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.3864, allocations: 0 / 482.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.3864, allocations: 8 kB / 482.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003343/0.3868, allocations: 121.5 kB / 483 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3868, allocations: 0 / 483 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.3868, allocations: 0 / 483 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.3868, allocations: 4 kB / 483 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.3872, allocations: 143.9 kB / 483.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.3877, allocations: 348.7 kB / 483.5 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.388, allocations: 110.5 kB / 483.6 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.3883, allocations: 96.95 kB / 483.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/0.3996, allocations: 8.382 MB / 492.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.3996, allocations: 38.55 kB / 492.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.944e-06/0.3996, allocations: 0 / 492.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.000847/0.4005, allocations: 285.4 kB / 492.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.4005, allocations: 51.41 kB / 492.4 MB, free: 5.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.4007, allocations: 134.2 kB / 492.6 MB, free: 5.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.4007, allocations: 25.7 kB / 492.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.4008, allocations: 92.34 kB / 492.7 MB, free: 5.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.4008, allocations: 47.58 kB / 492.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.4009, allocations: 21.72 kB / 492.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.401, allocations: 330.8 kB / 493.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.4012, allocations: 67.94 kB / 493.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.4014, allocations: 75.94 kB / 493.2 MB, free: 4.805 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003965/0.4018, allocations: 173.2 kB / 493.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4018, allocations: 0 / 493.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004564/0.4023, allocations: 201.5 kB / 493.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4023, allocations: 4 kB / 493.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.4023, allocations: 0 / 493.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.4024, allocations: 4 kB / 493.6 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.4025, allocations: 23.97 kB / 493.6 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.4025, allocations: 0 / 493.6 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.4027, allocations: 23.86 kB / 493.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.4027, allocations: 0 / 493.6 MB, free: 4.375 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.0001064/0.4028, allocations: 121.7 kB / 493.8 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.4029, allocations: 15.89 kB / 493.8 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005584/0.4034, allocations: 226.3 kB / 494 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.4034, allocations: 7.969 kB / 494 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4034, allocations: 0 / 494 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4035, allocations: 0 / 494 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.4037, allocations: 221.5 kB / 494.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.4037, allocations: 0 / 494.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.4038, allocations: 27.97 kB / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4038, allocations: 0 / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.4039, allocations: 0 / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4039, allocations: 0 / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4039, allocations: 0 / 494.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.4044, allocations: 319.2 kB / 494.6 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.4046, allocations: 96.98 kB / 494.6 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.4046, allocations: 0 / 494.6 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.4047, allocations: 11.98 kB / 494.7 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.4048, allocations: 15.92 kB / 494.7 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.4048, allocations: 4 kB / 494.7 MB, free: 3.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.525e-05/0.4049, allocations: 98.53 kB / 494.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4049, allocations: 4 kB / 494.8 MB, free: 3.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002467/0.4074, allocations: 0.7436 MB / 495.5 MB, free: 2.387 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.004789/0.4122, allocations: 1.964 MB / 497.5 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000589/0.4128, allocations: 179.8 kB / 497.7 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4128, allocations: 0 / 497.7 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.413, allocations: 95.88 kB / 497.8 MB, free: 132 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.4135, allocations: 48.16 kB / 497.8 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.4154, allocations: 0.609 MB / 498.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.4157, allocations: 0.6963 MB / 499.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.294e-05/0.4157, allocations: 11.98 kB / 499.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.965e-05/0.4158, allocations: 19.44 kB / 499.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4158, allocations: 0 / 499.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0571/0.4729, allocations: 25.8 MB / 0.5126 GB, free: 4.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.972/9.445, allocations: 16.27 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)