Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Validation.Properties.TransportAmmonia.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 84.88 kB / 20.82 MB, free: 3.648 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002153/0.002153, allocations: 169.4 kB / 24.24 MB, free: 232 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 177.1 MB / 204.7 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.09109/0.09109, allocations: 11.38 MB / 272.5 MB, free: 2.191 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HelmholtzMedia.Validation.Properties.TransportAmmonia,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Validation.Properties.TransportAmmonia") translateModel(HelmholtzMedia.Validation.Properties.TransportAmmonia,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Validation.Properties.TransportAmmonia") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.034e-05/1.034e-05, allocations: 3.406 kB / 291.7 MB, free: 17.7 MB / 266.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Validation.Properties.TransportAmmonia): time 0.07566/0.07567, allocations: 58.04 MB / 349.7 MB, free: 15 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006546/0.08221, allocations: 4.08 MB / 353.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.177e-05/0.08225, allocations: 7.938 kB / 353.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006521/0.08291, allocations: 199.8 kB / 354 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.08309, allocations: 51.73 kB / 354.1 MB, free: 10.66 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/Internal/Transport/thermalConductivity_dilute.mo:2:1-86:31:writable] Warning: Pure function 'HelmholtzMedia.Validation.Properties.TransportAmmonia.Medium.Internal.Transport.thermalConductivity_dilute' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.02866/0.1118, allocations: 9.489 MB / 363.6 MB, free: 1.141 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.1121, allocations: 151.5 kB / 363.7 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.1121, allocations: 7.984 kB / 363.7 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/0.1124, allocations: 119.6 kB / 363.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02348/0.1359, allocations: 12.72 MB / 376.6 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.294e-05/0.136, allocations: 0 / 376.6 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02393/0.1599, allocations: 9.819 MB / 386.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of combineBinaries: time 0.0001906/0.1601, allocations: 115.2 kB / 386.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of replaceArrayConstructors: time 7.245e-05/0.1601, allocations: 75.47 kB / 386.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.534e-05/0.1602, allocations: 19.88 kB / 386.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.576e-05/0.1602, allocations: 0 / 386.6 MB, free: 10.09 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 (1) * Number of variables: 11 (11) Notification: Performance of [SIM] Bindings: time 0.0009287/0.1612, allocations: 0.6309 MB / 387.2 MB, free: 9.336 MB / 346.7 MB Notification: Performance of [SIM] FunctionAlias: time 4.325e-05/0.1612, allocations: 15.98 kB / 387.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of [SIM] Early Inline: time 0.0008161/0.162, allocations: 0.4999 MB / 387.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of [SIM] Simplify 1: time 0.000162/0.1622, allocations: 92.8 kB / 387.8 MB, free: 8.676 MB / 346.7 MB Notification: Performance of [SIM] Alias: time 0.0002244/0.1624, allocations: 152.6 kB / 388 MB, free: 8.477 MB / 346.7 MB Notification: Performance of [SIM] Simplify 2: time 0.0001415/0.1626, allocations: 92.28 kB / 388.1 MB, free: 8.359 MB / 346.7 MB Notification: Performance of [SIM] Remove Stream: time 0.0001217/0.1627, allocations: 80.38 kB / 388.1 MB, free: 8.254 MB / 346.7 MB Notification: Performance of [SIM] Detect States: time 0.0002637/0.1629, allocations: 188.8 kB / 388.3 MB, free: 8.004 MB / 346.7 MB Notification: Performance of [SIM] Events: time 0.0001241/0.1631, allocations: 51.97 kB / 388.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of [SIM] Partitioning: time 0.0002581/0.1633, allocations: 167 kB / 388.5 MB, free: 7.758 MB / 346.7 MB Error: Internal error NBSorting.tarjan failed to sort system: System Variables (11/11) ************************** (1|1) [ALGB] (1) protected Real state.d (start = 233.25000192, min = 2.220446049250313e-16, max = 904.8315276, nominal = 1.0) (2|2) [DISC] (1) protected Integer state.phase (start = 0, min = 0, max = 2) (3|3) [ALGB] (1) protected Real state.s (start = 7200.0, min = -600.0, max = 15000.0, nominal = 1000.0) (4|4) [DISC] (1) Integer nFailed (5|5) [DISC] (1) protected Real err (6|6) [DISC] (1) protected Real lambda (7|7) [ALGB] (1) protected Real state.u (min = -1e8, max = 1e8, nominal = 1e6) (8|8) [ALGB] (1) protected Real state.h (start = 1.4e6, min = -2e5, max = 3e6, nominal = 1e6) (9|9) [ALGB] (1) protected Real state.T (start = 298.15, min = 195.49, max = 725.0, nominal = 300.0) (10|10) [DISC] (1) protected Real eta (11|11) [ALGB] (1) protected Real state.p (start = 101325.0, min = 0.0, max = 1e9, nominal = 1e5) System Equations (1/5) ************************ (1|1) [ALGO] (5) ($RES_SIM_0) (1|1) [----] when initial() then (1|1) [----] nFailed := 0; (1|1) [----] Modelica.Utilities.Files.remove(\"transportAmmonia.txt\"); (1|1) [----] for i in 1:3 loop (1|1) [----] state := HelmholtzMedia.Validation.Properties.TransportAmmonia.Medium.setState_dTX(({1e-6, 8.0, 609.0})[i], 300.0, {1.0}, 0); (1|1) [----] eta := 1e6 * HelmholtzMedia.Validation.Properties.TransportAmmonia.Medium.Internal.Transport.dynamicViscosity(state.d, state.T, state.phase); (1|1) [----] err := (-1.0) + eta / ({10.1812, 9.9219, 133.3937})[i]; (1|1) [----] if abs(err) > 2e-5 then (1|1) [----] nFailed := 1 + nFailed; (1|1) [----] end if; (1|1) [----] Modelica.Utilities.Streams.print(\"T=300 d=\" + String(({1e-6, 8.0, 609.0})[i], 6, 0, true) + \" eta=\" + String(eta, 10, 0, true) + \" ref=\" + String(({10.1812, 9.9219, 133.3937})[i], 6, 0, true) + \" rel_err=\" + String(err, 3, 0, true), \"transportAmmonia.txt\"); (1|1) [----] end for; (1|1) [----] state := HelmholtzMedia.Validation.Properties.TransportAmmonia.Medium.ThermodynamicState(1, 390.0, 1.0082652936834771e7, 415.0, 804088.9155192733, 828384.4647646582, 2837.973137353217); (1|1) [----] lambda := 1000.0 * HelmholtzMedia.Validation.Properties.TransportAmmonia.Medium.Internal.Transport.thermalConductivity(state.d, state.T, state.phase); (1|1) [----] err := (-1.0) + 0.0037860181463925473 * lambda; (1|1) [----] if abs(err) > 1e-4 then (1|1) [----] nFailed := 1 + nFailed; (1|1) [----] end if; (1|1) [----] Modelica.Utilities.Streams.print(\"T=390 d=415 lambda=\" + String(lambda, 10, 0, true) + \" ref=\" + \"264.13\" + \" rel_err=\" + String(err, 3, 0, true), \"transportAmmonia.txt\"); (1|1) [----] Modelica.Utilities.Streams.print(\"nFailed=\" + String(nFailed, 0, true), \"transportAmmonia.txt\"); (1|1) [----] assert(nFailed == 0, \"TransportAmmonia: \" + String(nFailed, 0, true) + \" check values not met, see \" + \"transportAmmonia.txt\", AssertionLevel.error); (1|1) [----] end when; =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 3 var 2 --> eqn -1 var 3 --> eqn -1 var 4 --> eqn -1 var 5 --> eqn -1 var 6 --> eqn 2 var 7 --> eqn -1 var 8 --> eqn 1 var 9 --> eqn 4 var 10 --> eqn -1 var 11 --> eqn 5 equation to variable ********************** eqn 1 --> var 8 eqn 2 --> var 6 eqn 3 --> var 1 eqn 4 --> var 9 eqn 5 --> var 11 " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.6199059477075934]