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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008086/0.008086, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001771/0.001771, allocations: 185.5 kB / 16.67 MB, free: 5.938 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.456/1.456, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04575/0.04575, allocations: 9.106 MB / 279 MB, free: 12.04 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.001345/0.001345, allocations: 71.12 kB / 387.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.311, allocations: 48.16 MB / 435.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport): time 0.02068/0.3317, allocations: 17.4 MB / 453 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.342, allocations: 10.09 MB / 463.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.3422, allocations: 1.156 kB / 463.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008748/0.3431, allocations: 280.7 kB / 463.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.3436, allocations: 136.2 kB / 463.5 MB, free: 2.18 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.01709/0.3607, allocations: 5.566 MB / 469.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.361, allocations: 154.6 kB / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.343e-05/0.361, allocations: 6.281 kB / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.3613, allocations: 84.23 kB / 469.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.927e-05/0.3614, allocations: 52.39 kB / 469.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.3614, allocations: 9.094 kB / 469.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.3789, allocations: 9.021 MB / 478.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.409e-05/0.379, allocations: 11.92 kB / 478.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.3791, allocations: 47.8 kB / 478.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.391, allocations: 3.507 MB / 482 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3911, allocations: 0 / 482 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3911, allocations: 0 / 482 MB, free: 2.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.3911, allocations: 0 / 482 MB, free: 2.262 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.002369/0.3935, allocations: 0.8268 MB / 482.8 MB, free: 1.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.3936, allocations: 12.03 kB / 482.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.234e-05/0.3937, allocations: 7.953 kB / 482.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.3939, allocations: 190.7 kB / 483 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.3939, allocations: 0 / 483 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.3939, allocations: 4 kB / 483 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003891/0.3943, allocations: 121.5 kB / 483.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3944, allocations: 0 / 483.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.3944, allocations: 0 / 483.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3944, allocations: 4 kB / 483.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004166/0.3948, allocations: 139.9 kB / 483.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.3954, allocations: 352.7 kB / 483.6 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.3957, allocations: 110.5 kB / 483.7 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.396, allocations: 100.7 kB / 483.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.4079, allocations: 8.382 MB / 492.2 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.408, allocations: 34.56 kB / 492.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.154e-06/0.408, allocations: 0 / 492.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008482/0.4089, allocations: 281.4 kB / 492.5 MB, free: 6.012 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.4089, allocations: 55.41 kB / 492.5 MB, free: 5.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.4091, allocations: 138.1 kB / 492.7 MB, free: 5.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.4091, allocations: 25.7 kB / 492.7 MB, free: 5.766 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.4091, allocations: 88.42 kB / 492.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/0.4092, allocations: 51.56 kB / 492.8 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.4093, allocations: 25.66 kB / 492.9 MB, free: 5.594 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4094, allocations: 322.8 kB / 493.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.4096, allocations: 75.94 kB / 493.3 MB, free: 5.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.4098, allocations: 75.94 kB / 493.3 MB, free: 5.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.4102, allocations: 169.2 kB / 493.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4102, allocations: 0 / 493.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004761/0.4107, allocations: 201.5 kB / 493.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.4108, allocations: 8 kB / 493.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.4108, allocations: 240 / 493.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.4108, allocations: 0 / 493.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.411, allocations: 27.91 kB / 493.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.411, allocations: 3.984 kB / 493.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.4111, allocations: 11.98 kB / 493.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.4111, allocations: 4 kB / 493.7 MB, free: 4.695 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.0001279/0.4112, allocations: 133.7 kB / 493.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.4113, allocations: 15.89 kB / 493.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005506/0.4119, allocations: 226.2 kB / 494.1 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.4119, allocations: 4 kB / 494.1 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4119, allocations: 0 / 494.1 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4119, allocations: 4 kB / 494.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002835/0.4122, allocations: 213.5 kB / 494.3 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4122, allocations: 0 / 494.3 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4123, allocations: 23.97 kB / 494.4 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4123, allocations: 0 / 494.4 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.4124, allocations: 4 kB / 494.4 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.4124, allocations: 0 / 494.4 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4124, allocations: 0 / 494.4 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.413, allocations: 315.2 kB / 494.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.4131, allocations: 100.9 kB / 494.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.4131, allocations: 7.938 kB / 494.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.4132, allocations: 11.98 kB / 494.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.4133, allocations: 11.98 kB / 494.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.4133, allocations: 4 kB / 494.8 MB, free: 3.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.968e-05/0.4134, allocations: 106.5 kB / 494.9 MB, free: 3.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4134, allocations: 0 / 494.9 MB, free: 3.441 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002649/0.4161, allocations: 0.7358 MB / 495.6 MB, free: 2.703 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.004605/0.4207, allocations: 1.235 MB / 496.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005858/0.4213, allocations: 171.8 kB / 497 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4213, allocations: 0 / 497 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.4216, allocations: 95.94 kB / 497.1 MB, free: 1.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.4221, allocations: 39.81 kB / 497.2 MB, free: 1.164 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006809/0.4228, allocations: 275.1 kB / 497.4 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.4231, allocations: 0.7034 MB / 498.1 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.757e-05/0.4232, allocations: 11.94 kB / 498.2 MB, free: 136 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.4232, allocations: 15.44 kB / 498.2 MB, free: 120 kB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4232, allocations: 0 / 498.2 MB, free: 120 kB / 366.1 MB Notification: Performance of Templates: time 0.03876/0.462, allocations: 23.82 MB / 0.5098 GB, free: 8.277 MB / 398.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_Transport.pipe 2>&1)