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.001051/0.001051, allocations: 92.22 kB / 19.65 MB, free: 276 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.00118/0.00118, allocations: 173 kB / 23.02 MB, free: 1.547 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 1.074/1.074, 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.06777/0.06777, 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 3.125e-06/3.125e-06, allocations: 0 / 346.8 MB, free: 1.137 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.876e-05/4.189e-05, allocations: 8.5 kB / 346.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.003495/0.003536, allocations: 2.787 MB / 349.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003316/0.006852, allocations: 2.06 MB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.007035, allocations: 7.938 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.007249, 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.001138/0.008387, allocations: 274.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.0007038/0.009091, allocations: 310.9 kB / 352.3 MB, free: 11.65 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002952/0.009386, allocations: 250.6 kB / 352.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.009551, allocations: 40.5 kB / 352.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.009813, allocations: 135.6 kB / 352.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.009956, allocations: 59.81 kB / 352.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.009985, allocations: 12 kB / 352.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.674e-05/0.01006, allocations: 16 kB / 352.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.0101, allocations: 39.83 kB / 352.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.162e-05/0.01017, allocations: 63.84 kB / 352.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.01051, allocations: 155.4 kB / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.01051, allocations: 0 / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01051, allocations: 0 / 353 MB, free: 10.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.01052, 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.001132/0.01165, allocations: 0.5074 MB / 353.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.01171, allocations: 15.98 kB / 353.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.01193, allocations: 48.78 kB / 353.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.01223, allocations: 196.2 kB / 353.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.01225, allocations: 16.31 kB / 353.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.01227, allocations: 12.38 kB / 353.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.01248, allocations: 119.4 kB / 353.9 MB, free: 9.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.01249, allocations: 7.938 kB / 353.9 MB, free: 9.906 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.01251, allocations: 8 kB / 353.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.01252, allocations: 0 / 353.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.614e-05/0.0126, allocations: 39.97 kB / 354 MB, free: 9.859 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.0007766/0.01338, allocations: 486.3 kB / 354.5 MB, free: 9.344 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.01353, allocations: 51.05 kB / 354.5 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.35e-05/0.01357, allocations: 23.62 kB / 354.5 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.01359, allocations: 4 kB / 354.5 MB, free: 9.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.01362, allocations: 37.39 kB / 354.6 MB, free: 9.203 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 2.184e-06/0.01362, allocations: 0 / 354.6 MB, free: 9.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009204/0.01454, allocations: 321 kB / 354.9 MB, free: 8.883 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.01458, allocations: 51.41 kB / 354.9 MB, free: 8.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.01476, allocations: 258.7 kB / 355.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.01478, allocations: 25.7 kB / 355.2 MB, free: 8.516 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.01488, allocations: 202.9 kB / 355.4 MB, free: 8.312 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.01491, allocations: 43.58 kB / 355.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.01498, allocations: 55.31 kB / 355.5 MB, free: 8.207 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.01512, allocations: 0.5 MB / 356 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.562e-05/0.01518, allocations: 23.98 kB / 356 MB, free: 7.672 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.01529, allocations: 131.8 kB / 356.2 MB, free: 7.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.01546, allocations: 180.6 kB / 356.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01546, allocations: 0 / 356.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002254/0.01568, allocations: 177.3 kB / 356.5 MB, free: 7.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.0157, allocations: 9.391 kB / 356.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.01571, allocations: 4 kB / 356.5 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.01573, allocations: 4 kB / 356.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.01595, allocations: 67.91 kB / 356.6 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.01596, allocations: 4.297 kB / 356.6 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.744e-05/0.01604, allocations: 27.89 kB / 356.6 MB, free: 6.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.01605, allocations: 4 kB / 356.6 MB, free: 6.984 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 9.98e-05/0.01615, allocations: 168.5 kB / 356.8 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.01618, allocations: 23.91 kB / 356.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.01641, allocations: 131.1 kB / 356.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.01641, allocations: 0 / 356.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.01642, allocations: 0 / 356.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01642, allocations: 4 kB / 356.9 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.01661, allocations: 196.4 kB / 357.1 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01661, allocations: 0 / 357.1 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.01675, allocations: 47.97 kB / 357.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.01676, allocations: 0 / 357.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.01677, allocations: 4 kB / 357.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.01678, allocations: 0 / 357.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01678, allocations: 0 / 357.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.01703, allocations: 267.7 kB / 357.4 MB, free: 6.086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.0171, allocations: 31.84 kB / 357.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.01713, allocations: 7.984 kB / 357.5 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.01723, allocations: 12 kB / 357.5 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.01729, allocations: 11.97 kB / 357.5 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.0173, allocations: 7.984 kB / 357.5 MB, free: 6.016 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.01741, allocations: 177.5 kB / 357.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01741, allocations: 4 kB / 357.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.01761, allocations: 40 kB / 357.7 MB, free: 5.801 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 0.0001163/0.01773, allocations: 95.25 kB / 357.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.01796, allocations: 103.5 kB / 357.9 MB, free: 5.594 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.01796, allocations: 0 / 357.9 MB, free: 5.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.021e-05/0.01802, allocations: 51.47 kB / 358 MB, free: 5.543 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.01834, allocations: 48.38 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.001465/0.01981, allocations: 438.9 kB / 358.5 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.947e-05/0.01987, allocations: 76.33 kB / 358.5 MB, free: 4.941 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.704e-05/0.01995, allocations: 25.58 kB / 358.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.563e-05/0.02002, allocations: 24.48 kB / 358.6 MB, free: 4.891 MB / 282.7 MB Notification: Performance of SimCode: time 1.934e-06/0.02002, allocations: 0 / 358.6 MB, free: 4.891 MB / 282.7 MB Notification: Performance of Templates: time 0.00553/0.02555, allocations: 2.509 MB / 361.1 MB, free: 2.438 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.102610351983458]