Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.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.001269/0.001269, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001521/0.001521, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 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 0.9714/0.9714, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.05949/0.05949, allocations: 12.75 MB / 272.7 MB, free: 280 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/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(Bodylight.SteadyStates.Examples.O2_in_water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.O2_in_water") translateModel(Bodylight.SteadyStates.Examples.O2_in_water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.O2_in_water") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 4 kB / 346.8 MB, free: 1.133 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.357e-05, allocations: 2.312 kB / 346.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.002999/0.003022, allocations: 2.787 MB / 349.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.005549, allocations: 2.06 MB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.005666, allocations: 7.938 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.005817, allocations: 23.72 kB / 351.7 MB, free: 12.22 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0007833/0.0066, allocations: 282.3 kB / 352 MB, free: 11.95 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.007059, allocations: 303 kB / 352.3 MB, free: 11.65 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.007295, allocations: 250.6 kB / 352.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.007421, allocations: 52.47 kB / 352.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.007608, allocations: 123.6 kB / 352.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.007719, allocations: 63.81 kB / 352.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.007739, allocations: 12 kB / 352.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.208e-05/0.007791, allocations: 19.98 kB / 352.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.007819, allocations: 27.86 kB / 352.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.215e-05/0.007881, allocations: 67.83 kB / 352.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.008113, allocations: 151.4 kB / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.008118, allocations: 4 kB / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.008119, allocations: 4 kB / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.008124, allocations: 0 / 353 MB, free: 10.89 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005553/0.00868, allocations: 0.5074 MB / 353.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.008715, allocations: 15.98 kB / 353.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.008878, allocations: 44.78 kB / 353.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.009116, allocations: 208.2 kB / 353.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.009129, allocations: 12.31 kB / 353.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.009145, allocations: 12.38 kB / 353.8 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.009346, allocations: 111.4 kB / 353.9 MB, free: 9.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.009355, allocations: 3.938 kB / 353.9 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.009372, allocations: 11.97 kB / 353.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.009381, allocations: 4 kB / 353.9 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.471e-05/0.009465, allocations: 39.97 kB / 354 MB, free: 9.855 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006338/0.0101, allocations: 482.4 kB / 354.5 MB, free: 9.344 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.01021, allocations: 59.03 kB / 354.5 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.734e-05/0.01025, allocations: 23.61 kB / 354.5 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.01027, allocations: 0 / 354.5 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.0103, allocations: 41.39 kB / 354.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.0103, allocations: 0 / 354.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008146/0.01111, allocations: 304.9 kB / 354.9 MB, free: 8.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.01114, allocations: 55.41 kB / 354.9 MB, free: 8.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.0113, allocations: 262.7 kB / 355.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.01132, allocations: 29.7 kB / 355.2 MB, free: 8.512 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.0114, allocations: 198.9 kB / 355.4 MB, free: 8.312 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.01143, allocations: 51.72 kB / 355.5 MB, free: 8.262 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.01149, allocations: 55.31 kB / 355.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.0116, allocations: 0.5 MB / 356 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.23e-05/0.01165, allocations: 23.97 kB / 356 MB, free: 7.664 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.829e-05/0.01175, allocations: 135.7 kB / 356.2 MB, free: 7.488 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.01191, allocations: 172.4 kB / 356.3 MB, free: 7.273 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.01191, allocations: 4 kB / 356.3 MB, free: 7.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002151/0.01212, allocations: 173.5 kB / 356.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.01214, allocations: 8 kB / 356.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.01215, allocations: 4 kB / 356.5 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.01216, allocations: 4 kB / 356.5 MB, free: 7.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.01235, allocations: 63.89 kB / 356.6 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.01236, allocations: 4 kB / 356.6 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.748e-05/0.01244, allocations: 19.94 kB / 356.6 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.01245, allocations: 11.94 kB / 356.6 MB, free: 6.98 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 8.67e-05/0.01254, allocations: 176.5 kB / 356.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.01257, allocations: 19.91 kB / 356.8 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.01277, allocations: 130.6 kB / 356.9 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.01278, allocations: 7.938 kB / 357 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.01278, allocations: 0 / 357 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.01278, allocations: 0 / 357 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.01295, allocations: 184.5 kB / 357.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01296, allocations: 0 / 357.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.01308, allocations: 51.97 kB / 357.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.01308, allocations: 0 / 357.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.01309, allocations: 3.984 kB / 357.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.0131, allocations: 4 kB / 357.2 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.0131, allocations: 0 / 357.2 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000198/0.01329, allocations: 267.7 kB / 357.5 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.01334, allocations: 27.84 kB / 357.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.01336, allocations: 4 kB / 357.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.204e-05/0.01343, allocations: 15.98 kB / 357.5 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.01347, allocations: 7.984 kB / 357.5 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.01348, allocations: 4 kB / 357.5 MB, free: 6.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.045e-05/0.01356, allocations: 181.5 kB / 357.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01356, allocations: 0 / 357.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.01376, allocations: 44 kB / 357.7 MB, free: 5.805 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 8.051e-05/0.01384, allocations: 99.23 kB / 357.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001757/0.01401, allocations: 95.52 kB / 357.9 MB, free: 5.602 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01401, allocations: 4.625 kB / 357.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.785e-05/0.01407, allocations: 43.61 kB / 358 MB, free: 5.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.01435, allocations: 54.03 kB / 358 MB, free: 5.496 MB / 282.7 MB Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal: Unit not found Error: Error parsing unit %: Parse error Error: Error parsing unit kcal/mol: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.0156, allocations: 442.3 kB / 358.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.446e-05/0.01564, allocations: 76.34 kB / 358.5 MB, free: 4.938 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.508e-05/0.01572, allocations: 21.62 kB / 358.5 MB, free: 4.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.01577, allocations: 28.44 kB / 358.6 MB, free: 4.887 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01577, allocations: 0 / 358.6 MB, free: 4.887 MB / 282.7 MB Notification: Performance of Templates: time 0.004282/0.02005, allocations: 2.499 MB / 361.1 MB, free: 2.445 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.sim & ./Bodylight_Bodylight.SteadyStates.Examples.O2_in_water -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0471492470242083]