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.001578/0.001578, allocations: 108 kB / 15.61 MB, free: 148 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.002128/0.002128, allocations: 196.6 kB / 16.53 MB, free: 6.656 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.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05003/0.05003, allocations: 9.093 MB / 278.9 MB, free: 12.16 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.001488/0.001488, allocations: 59.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 48.17 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport): time 0.02396/0.151, allocations: 17.42 MB / 403.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.1618, allocations: 10.08 MB / 413.8 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.1621, allocations: 0 / 413.8 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009724/0.1631, allocations: 275.6 kB / 414.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004979/0.1636, allocations: 139.3 kB / 414.2 MB, free: 13.1 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.ConvergenceTest.SinglePhase_Transport.Medium.Transport.thermalConductivity_dilute' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.01724/0.1809, allocations: 5.559 MB / 419.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.1812, allocations: 155.3 kB / 419.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.229e-05/0.1813, allocations: 13.34 kB / 419.9 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1815, allocations: 83.58 kB / 420 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1816, allocations: 59.7 kB / 420.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.1816, allocations: 4 kB / 420.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2657/0.4473, allocations: 8.894 MB / 429 MB, free: 20.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.781e-05/0.4474, allocations: 15.72 kB / 429 MB, free: 20.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.4476, allocations: 46.84 kB / 429 MB, free: 20.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01799/0.4656, allocations: 3.493 MB / 432.5 MB, free: 20.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4657, allocations: 0 / 432.5 MB, free: 20.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4657, allocations: 1.094 kB / 432.5 MB, free: 20.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.4657, allocations: 0 / 432.5 MB, free: 20.62 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.004153/0.4699, allocations: 0.7966 MB / 433.3 MB, free: 20.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/0.47, allocations: 12.53 kB / 433.3 MB, free: 20.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.47, allocations: 32.66 kB / 433.4 MB, free: 20 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.4701, allocations: 10.03 kB / 433.4 MB, free: 20 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.4703, allocations: 189.5 kB / 433.6 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.4703, allocations: 2.5 kB / 433.6 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.4704, allocations: 2.75 kB / 433.6 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.4708, allocations: 114.6 kB / 433.7 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4708, allocations: 0.5312 kB / 433.7 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.4708, allocations: 4.594 kB / 433.7 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.4709, allocations: 5.75 kB / 433.7 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/0.4714, allocations: 140.5 kB / 433.8 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006197/0.472, allocations: 353.2 kB / 434.2 MB, free: 19.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.4723, allocations: 106.8 kB / 434.3 MB, free: 19.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.4726, allocations: 98.31 kB / 434.4 MB, free: 19.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01597/0.4885, allocations: 8.383 MB / 442.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.4886, allocations: 37.86 kB / 442.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 5.18e-06/0.4887, allocations: 0 / 442.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00124/0.4899, allocations: 287.7 kB / 443.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.49, allocations: 53.48 kB / 443.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.4901, allocations: 129.2 kB / 443.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.4901, allocations: 31.05 kB / 443.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.402e-05/0.4902, allocations: 88.42 kB / 443.4 MB, free: 11.28 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.4903, allocations: 42.84 kB / 443.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.623e-05/0.4904, allocations: 25.19 kB / 443.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.234e-05/0.4905, allocations: 320 kB / 443.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/0.4908, allocations: 77.91 kB / 443.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.4911, allocations: 71.83 kB / 443.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.4917, allocations: 168.2 kB / 444 MB, free: 10.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4918, allocations: 0 / 444 MB, free: 10.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000743/0.4925, allocations: 205.2 kB / 444.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.4926, allocations: 4.719 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.4926, allocations: 4.562 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.4926, allocations: 0.625 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.4928, allocations: 23.2 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.4929, allocations: 0.5938 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.4931, allocations: 20.02 kB / 444.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.4931, allocations: 1.594 kB / 444.3 MB, free: 10.86 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 (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.000158/0.4933, allocations: 117.3 kB / 444.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.739e-05/0.4934, allocations: 21.12 kB / 444.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008541/0.4943, allocations: 225.3 kB / 444.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.4943, allocations: 3.109 kB / 444.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.4943, allocations: 0 / 444.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4943, allocations: 5.125 kB / 444.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.4946, allocations: 210.8 kB / 444.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4947, allocations: 5.812 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.4948, allocations: 21.3 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.868e-06/0.4949, allocations: 1.344 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4949, allocations: 3.375 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4949, allocations: 1.25 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4949, allocations: 4.125 kB / 444.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007246/0.4956, allocations: 307 kB / 445.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.4958, allocations: 98.42 kB / 445.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.4958, allocations: 1.375 kB / 445.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.496, allocations: 17.42 kB / 445.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.4961, allocations: 10.66 kB / 445.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.4962, allocations: 8.578 kB / 445.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001024/0.4963, allocations: 105.5 kB / 445.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4963, allocations: 0 / 445.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.005936/0.5022, allocations: 0.7263 MB / 446.2 MB, free: 10.02 MB / 318.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.01239/0.5146, allocations: 1.961 MB / 448.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.5156, allocations: 181.2 kB / 448.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.5157, allocations: 0 / 448.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003431/0.516, allocations: 93.92 kB / 448.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.5168, allocations: 39.83 kB / 448.4 MB, free: 9.121 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004413/0.5212, allocations: 0.6044 MB / 449 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.5214, allocations: 0.6987 MB / 449.7 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.5216, allocations: 11.56 kB / 449.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.5217, allocations: 27.86 kB / 449.8 MB, free: 8.078 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5217, allocations: 0 / 449.8 MB, free: 8.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06532/0.587, allocations: 25.8 MB / 475.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.117/9.704, allocations: 3.953 kB / 475.6 MB, free: 6.688 MB / 334.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)