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.001369/0.001369, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.0009395/0.0009395, allocations: 169 kB / 24.06 MB, free: 452 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 0.9704/0.9704, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.06717/0.06717, allocations: 12.75 MB / 273.8 MB, free: 104 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.443e-06/1.443e-06, allocations: 0 / 348 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.044e-05, allocations: 2.312 kB / 348 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.002975/0.002996, allocations: 2.778 MB / 350.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.005426, allocations: 2.01 MB / 352.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.005532, allocations: 15.88 kB / 352.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.005653, allocations: 31.66 kB / 352.9 MB, free: 13.18 MB / 330.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.0006841/0.006337, allocations: 270.4 kB / 353.1 MB, free: 12.91 MB / 330.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.0004772/0.006814, allocations: 299 kB / 353.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.007027, allocations: 246.6 kB / 353.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.747e-05/0.007124, allocations: 48.28 kB / 353.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.007275, allocations: 131.6 kB / 353.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.007378, allocations: 67.8 kB / 353.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.007401, allocations: 12 kB / 353.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.048e-05/0.007461, allocations: 20 kB / 353.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.345e-05/0.007494, allocations: 27.84 kB / 354 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.007563, allocations: 63.78 kB / 354 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.00777, allocations: 159.4 kB / 354.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.007772, allocations: 0 / 354.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.007772, allocations: 0 / 354.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.007776, allocations: 3.938 kB / 354.2 MB, free: 11.86 MB / 330.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.0004266/0.008202, allocations: 0.519 MB / 354.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.754e-05/0.00823, allocations: 11.98 kB / 354.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.008353, allocations: 44.83 kB / 354.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.008538, allocations: 207.9 kB / 355 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.008549, allocations: 8.375 kB / 355 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.008561, allocations: 12.38 kB / 355 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.008683, allocations: 98.91 kB / 355.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.008691, allocations: 3.938 kB / 355.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.0087, allocations: 4 kB / 355.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.008706, allocations: 4 kB / 355.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.987e-05/0.008756, allocations: 39.89 kB / 355.1 MB, free: 10.84 MB / 330.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.0006953/0.009451, allocations: 482.3 kB / 355.6 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.301e-05/0.009534, allocations: 59.03 kB / 355.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.287e-05/0.009557, allocations: 23.61 kB / 355.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.009569, allocations: 7.938 kB / 355.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.00959, allocations: 37.39 kB / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.009591, allocations: 0 / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.000643/0.01023, allocations: 273.2 kB / 356 MB, free: 9.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.01026, allocations: 55.41 kB / 356.1 MB, free: 9.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.01038, allocations: 258.6 kB / 356.3 MB, free: 9.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.01039, allocations: 29.7 kB / 356.3 MB, free: 9.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.236e-05/0.01046, allocations: 202.9 kB / 356.5 MB, free: 9.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.01049, allocations: 47.56 kB / 356.6 MB, free: 9.277 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/0.01054, allocations: 59.3 kB / 356.6 MB, free: 9.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.01066, allocations: 0.5039 MB / 357.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.469e-05/0.01069, allocations: 23.92 kB / 357.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.2e-05/0.01076, allocations: 120.5 kB / 357.3 MB, free: 8.508 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.01088, allocations: 159.8 kB / 357.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.01088, allocations: 0 / 357.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001683/0.01105, allocations: 173.2 kB / 357.6 MB, free: 8.133 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.01106, allocations: 4 kB / 357.6 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01106, allocations: 4.312 kB / 357.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-06/0.01107, allocations: 8 kB / 357.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.01123, allocations: 71.89 kB / 357.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.01124, allocations: 4 kB / 357.7 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.436e-05/0.01131, allocations: 15.95 kB / 357.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.01132, allocations: 4 kB / 357.7 MB, free: 8.023 MB / 330.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 7.045e-05/0.01139, allocations: 172.4 kB / 357.9 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.01142, allocations: 23.91 kB / 357.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.01158, allocations: 119 kB / 358 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.01158, allocations: 4 kB / 358 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.01158, allocations: 0 / 358 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.01159, allocations: 3.984 kB / 358 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.01173, allocations: 153.1 kB / 358.2 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.01173, allocations: 4 kB / 358.2 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.01184, allocations: 47.97 kB / 358.2 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01184, allocations: 3.984 kB / 358.2 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.01185, allocations: 4 kB / 358.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.01185, allocations: 0 / 358.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.01185, allocations: 0 / 358.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.012, allocations: 267.4 kB / 358.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.01204, allocations: 27.84 kB / 358.5 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.01205, allocations: 0 / 358.5 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.01212, allocations: 15.98 kB / 358.5 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.01215, allocations: 3.984 kB / 358.5 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.01216, allocations: 8 kB / 358.6 MB, free: 7.121 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.217e-05/0.01222, allocations: 177.5 kB / 358.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01222, allocations: 0 / 358.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001868/0.01241, allocations: 52 kB / 358.8 MB, free: 6.898 MB / 330.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 6.421e-05/0.01247, allocations: 91.19 kB / 358.9 MB, free: 6.801 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.0126, allocations: 93.75 kB / 359 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.01261, allocations: 3.938 kB / 359 MB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.404e-05/0.01265, allocations: 43.64 kB / 359 MB, free: 6.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.0129, allocations: 52.09 kB / 359.1 MB, free: 6.605 MB / 330.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.001021/0.01392, allocations: 438.4 kB / 359.5 MB, free: 6.148 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.138e-05/0.01396, allocations: 72.33 kB / 359.6 MB, free: 6.059 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.54e-05/0.01404, allocations: 25.62 kB / 359.6 MB, free: 6.035 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.01415, allocations: 118.2 kB / 359.7 MB, free: 5.918 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01415, allocations: 3.938 kB / 359.7 MB, free: 5.914 MB / 330.7 MB Notification: Performance of Templates: time 0.004145/0.0183, allocations: 2.628 MB / 362.3 MB, free: 3.348 MB / 330.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.910141082946211]