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.001073/0.001073, allocations: 81.64 kB / 19.87 MB, free: 4.613 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.001066/0.001066, allocations: 169 kB / 23.28 MB, free: 1.215 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.051/1.051, allocations: 177.1 MB / 203.7 MB, free: 5.484 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.08367/0.08367, allocations: 12.76 MB / 273 MB, free: 100 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.332e-06/1.332e-06, allocations: 0 / 347.3 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.385e-05, allocations: 2.312 kB / 347.3 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.002484/0.002498, allocations: 2.775 MB / 350 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.004663, allocations: 2.002 MB / 352 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.004767, allocations: 7.938 kB / 352 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.004896, allocations: 35.66 kB / 352.1 MB, free: 11.99 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.0005635/0.005459, allocations: 278.3 kB / 352.4 MB, free: 11.71 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.0003575/0.005817, allocations: 303 kB / 352.7 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.006021, allocations: 250.6 kB / 352.9 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.006125, allocations: 52.48 kB / 352.9 MB, free: 11.12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.006278, allocations: 123.6 kB / 353.1 MB, free: 11 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.82e-05/0.006376, allocations: 67.8 kB / 353.1 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.006396, allocations: 12 kB / 353.1 MB, free: 10.92 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.023e-05/0.006446, allocations: 20 kB / 353.2 MB, free: 10.9 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.006469, allocations: 27.84 kB / 353.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.209e-05/0.006521, allocations: 67.78 kB / 353.3 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.006698, allocations: 151.5 kB / 353.4 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.0067, allocations: 7.938 kB / 353.4 MB, free: 10.65 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.006701, allocations: 4 kB / 353.4 MB, free: 10.65 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.257e-06/0.006704, allocations: 0 / 353.4 MB, free: 10.65 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.0004617/0.007166, allocations: 0.5035 MB / 353.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.0072, allocations: 11.98 kB / 353.9 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.007331, allocations: 44.78 kB / 354 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.007522, allocations: 212.2 kB / 354.2 MB, free: 9.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.007533, allocations: 8.375 kB / 354.2 MB, free: 9.812 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.007546, allocations: 12.38 kB / 354.2 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.007676, allocations: 111.3 kB / 354.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.007685, allocations: 3.938 kB / 354.3 MB, free: 9.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.007696, allocations: 4 kB / 354.3 MB, free: 9.676 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.007703, allocations: 4 kB / 354.3 MB, free: 9.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.409e-05/0.007757, allocations: 31.97 kB / 354.4 MB, free: 9.641 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.0004954/0.008252, allocations: 490.3 kB / 354.8 MB, free: 9.121 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.116e-05/0.008333, allocations: 54.97 kB / 354.9 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.481e-05/0.008358, allocations: 23.62 kB / 354.9 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.008371, allocations: 0 / 354.9 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.008397, allocations: 37.39 kB / 354.9 MB, free: 8.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 8.41e-07/0.008397, allocations: 0 / 354.9 MB, free: 8.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006451/0.009043, allocations: 273.2 kB / 355.2 MB, free: 8.707 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.009066, allocations: 55.41 kB / 355.3 MB, free: 8.641 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.009192, allocations: 254.6 kB / 355.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.009205, allocations: 29.7 kB / 355.5 MB, free: 8.336 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/0.009288, allocations: 206.9 kB / 355.7 MB, free: 8.129 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.009316, allocations: 47.56 kB / 355.8 MB, free: 8.082 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-05/0.009371, allocations: 55.3 kB / 355.9 MB, free: 8.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.009502, allocations: 0.5039 MB / 356.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.009535, allocations: 19.98 kB / 356.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.412e-05/0.009619, allocations: 124.5 kB / 356.5 MB, free: 7.316 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.009755, allocations: 168.3 kB / 356.7 MB, free: 7.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.009757, allocations: 0 / 356.7 MB, free: 7.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001727/0.00993, allocations: 169.2 kB / 356.8 MB, free: 6.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.009941, allocations: 8 kB / 356.8 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.009946, allocations: 4 kB / 356.8 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.00996, allocations: 4 kB / 356.8 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.01013, allocations: 67.89 kB / 356.9 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.01013, allocations: 4 kB / 356.9 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.01021, allocations: 19.94 kB / 356.9 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.01022, allocations: 4 kB / 356.9 MB, free: 6.828 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 7.702e-05/0.01029, allocations: 176.5 kB / 357.1 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.01032, allocations: 19.91 kB / 357.1 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.01048, allocations: 123.1 kB / 357.2 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.01048, allocations: 4 kB / 357.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.01048, allocations: 0 / 357.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.01048, allocations: 0 / 357.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.01062, allocations: 153.1 kB / 357.4 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.01062, allocations: 0 / 357.4 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.01073, allocations: 55.91 kB / 357.5 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.01074, allocations: 4 kB / 357.5 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.01074, allocations: 0 / 357.5 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.01074, allocations: 0 / 357.5 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01074, allocations: 0 / 357.5 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.01089, allocations: 259.7 kB / 357.7 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.01094, allocations: 31.83 kB / 357.7 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.01095, allocations: 4 kB / 357.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.406e-05/0.01102, allocations: 4 kB / 357.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.01105, allocations: 11.97 kB / 357.8 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-06/0.01106, allocations: 8 kB / 357.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.423e-05/0.01112, allocations: 177.5 kB / 357.9 MB, free: 5.754 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01112, allocations: 0 / 357.9 MB, free: 5.754 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000183/0.0113, allocations: 51.94 kB / 358 MB, free: 5.703 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 6.182e-05/0.01136, allocations: 87.25 kB / 358.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.01149, allocations: 99.44 kB / 358.2 MB, free: 5.508 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.02e-07/0.01149, allocations: 0 / 358.2 MB, free: 5.508 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.01154, allocations: 40.23 kB / 358.2 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.01179, allocations: 65.47 kB / 358.3 MB, free: 5.406 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.001079/0.01287, allocations: 434.3 kB / 358.7 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.263e-05/0.01292, allocations: 72.33 kB / 358.8 MB, free: 4.859 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.31e-05/0.01299, allocations: 29.62 kB / 358.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.01311, allocations: 118.2 kB / 358.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01311, allocations: 0 / 358.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of Templates: time 0.003934/0.01704, allocations: 2.573 MB / 361.5 MB, free: 2.199 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: 2.938414376694709]