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.001025/0.001025, allocations: 73.88 kB / 20.66 MB, free: 3.848 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.001023/0.001023, allocations: 173 kB / 24.06 MB, free: 456 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.031/1.031, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.05984/0.05984, allocations: 12.76 MB / 273.8 MB, free: 124 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.653e-06/1.653e-06, allocations: 0 / 347.2 MB, free: 2.738 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.697e-05, allocations: 5.266 kB / 347.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.002815/0.002832, allocations: 2.775 MB / 350 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.005304, allocations: 2.01 MB / 352 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.005415, allocations: 7.938 kB / 352 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.00554, allocations: 31.66 kB / 352.1 MB, free: 13.89 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.0006113/0.006152, allocations: 270.5 kB / 352.3 MB, free: 13.62 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.000456/0.006608, allocations: 310.9 kB / 352.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.00686, allocations: 254.6 kB / 352.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.00698, allocations: 40.36 kB / 352.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.007156, allocations: 131.6 kB / 353 MB, free: 12.9 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.007262, allocations: 67.8 kB / 353.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.007281, allocations: 12 kB / 353.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.095e-05/0.007332, allocations: 16 kB / 353.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.007356, allocations: 31.84 kB / 353.2 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.679e-05/0.007403, allocations: 59.84 kB / 353.2 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.007599, allocations: 155.4 kB / 353.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.0076, allocations: 8 kB / 353.4 MB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.007601, allocations: 0 / 353.4 MB, free: 12.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.007604, allocations: 0 / 353.4 MB, free: 12.56 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.0004486/0.008053, allocations: 0.519 MB / 353.9 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.008084, allocations: 11.98 kB / 353.9 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.008222, allocations: 40.83 kB / 354 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.008419, allocations: 211.9 kB / 354.2 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.008428, allocations: 8.375 kB / 354.2 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.008439, allocations: 8.375 kB / 354.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.008566, allocations: 102.9 kB / 354.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.008575, allocations: 3.938 kB / 354.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.008586, allocations: 7.938 kB / 354.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.008591, allocations: 4 kB / 354.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.095e-05/0.008642, allocations: 39.95 kB / 354.3 MB, free: 11.54 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.0004867/0.009128, allocations: 478.3 kB / 354.8 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.542e-05/0.009224, allocations: 55.05 kB / 354.8 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.577e-05/0.00925, allocations: 27.75 kB / 354.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.009263, allocations: 0 / 354.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.009283, allocations: 41.39 kB / 354.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.009284, allocations: 0 / 354.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.000647/0.009931, allocations: 273 kB / 355.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.009955, allocations: 55.41 kB / 355.2 MB, free: 10.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.01008, allocations: 266.5 kB / 355.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.0101, allocations: 33.7 kB / 355.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.356e-05/0.01018, allocations: 202.9 kB / 355.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.01021, allocations: 39.64 kB / 355.8 MB, free: 9.977 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.01026, allocations: 51.3 kB / 355.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.01037, allocations: 0.5039 MB / 356.3 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.363e-05/0.01041, allocations: 23.98 kB / 356.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.617e-05/0.01048, allocations: 123.5 kB / 356.5 MB, free: 9.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.0106, allocations: 160.4 kB / 356.6 MB, free: 9.012 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01061, allocations: 0 / 356.6 MB, free: 9.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000185/0.01079, allocations: 173.5 kB / 356.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.0108, allocations: 4 kB / 356.8 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.01081, allocations: 4 kB / 356.8 MB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.01082, allocations: 4 kB / 356.8 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.01098, allocations: 71.89 kB / 356.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.01099, allocations: 0 / 356.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.326e-05/0.01106, allocations: 15.89 kB / 356.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.01107, allocations: 12 kB / 356.9 MB, free: 8.727 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 8.728e-05/0.01116, allocations: 176.6 kB / 357.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.01119, allocations: 23.91 kB / 357.1 MB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.01135, allocations: 122.6 kB / 357.2 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.01135, allocations: 7.938 kB / 357.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.01135, allocations: 0 / 357.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01135, allocations: 3.984 kB / 357.2 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.01149, allocations: 157.1 kB / 357.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.01149, allocations: 0 / 357.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.01161, allocations: 47.97 kB / 357.4 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.01161, allocations: 7.984 kB / 357.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.01162, allocations: 4 kB / 357.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.01162, allocations: 0 / 357.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01162, allocations: 0 / 357.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.01177, allocations: 255.7 kB / 357.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.01181, allocations: 31.84 kB / 357.7 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.01183, allocations: 0 / 357.7 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.536e-05/0.01189, allocations: 11.98 kB / 357.7 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.01193, allocations: 7.984 kB / 357.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.01193, allocations: 8 kB / 357.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.774e-05/0.012, allocations: 181.5 kB / 357.9 MB, free: 7.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.012, allocations: 0 / 357.9 MB, free: 7.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001954/0.0122, allocations: 44 kB / 358 MB, free: 7.598 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.506e-05/0.01226, allocations: 91.25 kB / 358.1 MB, free: 7.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.01238, allocations: 95.5 kB / 358.2 MB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.01239, allocations: 0.625 kB / 358.2 MB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.01243, allocations: 47.59 kB / 358.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.01268, allocations: 48.59 kB / 358.2 MB, free: 7.301 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.001093/0.01377, allocations: 460 kB / 358.7 MB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.012e-05/0.01384, allocations: 121.3 kB / 358.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.01398, allocations: 118.2 kB / 358.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01398, allocations: 4 kB / 358.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of Templates: time 0.002827/0.0168, allocations: 2.569 MB / 361.5 MB, free: 4.008 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 > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8183434531092644]