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.0009304/0.0009304, allocations: 81.53 kB / 20.8 MB, free: 3.66 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.001015/0.001015, allocations: 169 kB / 24.23 MB, free: 240 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.068/1.068, allocations: 177.1 MB / 204.7 MB, free: 5.461 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.05514/0.05514, allocations: 12.76 MB / 273.9 MB, free: 132 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 2.064e-06/2.064e-06, allocations: 0 / 295 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/2.009e-05, allocations: 3.438 kB / 295 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.003702/0.003722, allocations: 2.81 MB / 297.8 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.006907, allocations: 2.042 MB / 299.9 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.007019, allocations: 12.19 kB / 299.9 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.007167, allocations: 31.05 kB / 299.9 MB, free: 8.613 MB / 266.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.0007737/0.00794, allocations: 260.2 kB / 300.1 MB, free: 8.465 MB / 266.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.0006155/0.008556, allocations: 296 kB / 300.4 MB, free: 8.316 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000299/0.008855, allocations: 246.9 kB / 300.7 MB, free: 8.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.008979, allocations: 47.81 kB / 300.7 MB, free: 8.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.009204, allocations: 128.5 kB / 300.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.009317, allocations: 63.94 kB / 300.9 MB, free: 8.098 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.009348, allocations: 15.34 kB / 300.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.678e-05/0.009425, allocations: 22.03 kB / 300.9 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.615e-05/0.009451, allocations: 30.78 kB / 301 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.467e-05/0.009506, allocations: 58.12 kB / 301 MB, free: 8.051 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.009737, allocations: 162.5 kB / 301.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.009739, allocations: 0 / 301.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.00974, allocations: 0 / 301.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.009746, allocations: 4 kB / 301.2 MB, free: 7.973 MB / 266.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.0004979/0.01024, allocations: 397.4 kB / 301.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.01028, allocations: 13.25 kB / 301.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.01045, allocations: 38.02 kB / 301.6 MB, free: 7.641 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.01067, allocations: 191.7 kB / 301.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.01069, allocations: 9.562 kB / 301.8 MB, free: 7.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.01071, allocations: 12.47 kB / 301.8 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.01086, allocations: 110.6 kB / 302 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.01087, allocations: 3.938 kB / 302 MB, free: 7.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.01088, allocations: 5.469 kB / 302 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.01089, allocations: 3.656 kB / 302 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.06e-05/0.01095, allocations: 25.94 kB / 302 MB, free: 7.395 MB / 266.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.0004728/0.01142, allocations: 360.3 kB / 302.3 MB, free: 7.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.18e-05/0.0115, allocations: 48.42 kB / 302.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.384e-05/0.01153, allocations: 13.75 kB / 302.4 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.01154, allocations: 6.391 kB / 302.4 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.01156, allocations: 36.12 kB / 302.4 MB, free: 7.043 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.01156, allocations: 0 / 302.4 MB, free: 7.043 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003325/0.01189, allocations: 151.5 kB / 302.6 MB, free: 6.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.01191, allocations: 52.11 kB / 302.6 MB, free: 6.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.679e-05/0.01201, allocations: 203.2 kB / 302.8 MB, free: 6.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-06/0.01201, allocations: 27.08 kB / 302.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.01206, allocations: 146.6 kB / 303 MB, free: 6.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.01207, allocations: 29.84 kB / 303 MB, free: 6.602 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.01211, allocations: 39.55 kB / 303.1 MB, free: 6.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.01215, allocations: 333.9 kB / 303.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.003e-05/0.01217, allocations: 10.59 kB / 303.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.01222, allocations: 79.86 kB / 303.5 MB, free: 6.156 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.01233, allocations: 121 kB / 303.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.01233, allocations: 0 / 303.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001384/0.01247, allocations: 122 kB / 303.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.01248, allocations: 7.484 kB / 303.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.01249, allocations: 2.75 kB / 303.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.0125, allocations: 3.062 kB / 303.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.01269, allocations: 54.52 kB / 303.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.0127, allocations: 7.484 kB / 303.8 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.466e-05/0.01276, allocations: 25.36 kB / 303.8 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.01277, allocations: 6.062 kB / 303.8 MB, free: 5.961 MB / 266.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 (18): * Single equations (assignments): 18 * 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 6.032e-05/0.01283, allocations: 114.5 kB / 303.9 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.01286, allocations: 18.73 kB / 304 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.01299, allocations: 74.77 kB / 304 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01299, allocations: 5.375 kB / 304 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.01299, allocations: 0 / 304 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.013, allocations: 0.9375 kB / 304 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.01314, allocations: 104.5 kB / 304.1 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.01314, allocations: 5.359 kB / 304.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.01326, allocations: 35.86 kB / 304.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.01326, allocations: 6.109 kB / 304.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.01327, allocations: 0 / 304.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.01327, allocations: 2.359 kB / 304.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01327, allocations: 4 kB / 304.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.01337, allocations: 159.3 kB / 304.4 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.01341, allocations: 19.47 kB / 304.4 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.01342, allocations: 11.89 kB / 304.4 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.577e-05/0.01347, allocations: 6.75 kB / 304.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.0135, allocations: 3.062 kB / 304.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.0135, allocations: 1.938 kB / 304.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.335e-05/0.01356, allocations: 72.83 kB / 304.5 MB, free: 5.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01356, allocations: 0 / 304.5 MB, free: 5.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001689/0.01373, allocations: 41.2 kB / 304.5 MB, free: 5.484 MB / 266.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 (8): * Single equations (assignments): 8 * 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 6.855e-05/0.0138, allocations: 74.77 kB / 304.6 MB, free: 5.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.01391, allocations: 61.78 kB / 304.6 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.01392, allocations: 2.312 kB / 304.6 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.991e-05/0.01395, allocations: 28.38 kB / 304.7 MB, free: 5.371 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.01416, allocations: 39.2 kB / 304.7 MB, free: 5.359 MB / 266.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.001058/0.01522, allocations: 414 kB / 305.1 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.19e-05/0.01526, allocations: 69.83 kB / 305.2 MB, free: 5.023 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.163e-05/0.01533, allocations: 17.41 kB / 305.2 MB, free: 5.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.01543, allocations: 89.53 kB / 305.3 MB, free: 4.969 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01543, allocations: 1.375 kB / 305.3 MB, free: 4.969 MB / 266.7 MB Notification: Performance of Templates: time 0.004195/0.01963, allocations: 2.139 MB / 307.4 MB, free: 4.043 MB / 266.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: 2.923459558747709]