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.0009024/0.0009024, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001265/0.001265, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.03/1.03, allocations: 177.2 MB / 203.8 MB, free: 5.465 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.0651/0.0651, allocations: 12.76 MB / 273 MB, free: 156 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.475e-06/2.475e-06, allocations: 0.6562 kB / 294.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.492e-05, allocations: 2.844 kB / 294.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.003273/0.003298, allocations: 2.809 MB / 296.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.006223, allocations: 2.056 MB / 298.9 MB, free: 8.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.006354, allocations: 7.469 kB / 298.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.006505, allocations: 30.92 kB / 299 MB, free: 8.602 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.0008814/0.007386, allocations: 267.4 kB / 299.2 MB, free: 8.445 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.0006702/0.008056, allocations: 283.7 kB / 299.5 MB, free: 8.305 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003064/0.008363, allocations: 255.6 kB / 299.7 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.008496, allocations: 53.39 kB / 299.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.008718, allocations: 127.3 kB / 299.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.008856, allocations: 61.17 kB / 300 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.008881, allocations: 10.72 kB / 300 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.939e-05/0.008961, allocations: 21.95 kB / 300 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.64e-05/0.008987, allocations: 30.44 kB / 300 MB, free: 8.055 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.955e-05/0.009047, allocations: 71.34 kB / 300.1 MB, free: 8.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.009308, allocations: 154 kB / 300.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.009312, allocations: 1.094 kB / 300.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.009313, allocations: 0 / 300.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.00932, allocations: 7.938 kB / 300.3 MB, free: 7.949 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.0005124/0.009832, allocations: 396.7 kB / 300.7 MB, free: 7.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.009872, allocations: 12.89 kB / 300.7 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.01005, allocations: 36.89 kB / 300.7 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.01031, allocations: 191.8 kB / 300.9 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.01033, allocations: 10.83 kB / 300.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.01034, allocations: 7.938 kB / 300.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.01052, allocations: 110.4 kB / 301 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.01053, allocations: 5.719 kB / 301 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.01054, allocations: 5.688 kB / 301 MB, free: 7.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.01055, allocations: 5.688 kB / 301 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.488e-05/0.0106, allocations: 26.44 kB / 301.1 MB, free: 7.371 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.0005676/0.01117, allocations: 360 kB / 301.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.598e-05/0.01127, allocations: 45.3 kB / 301.5 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.483e-05/0.01129, allocations: 16.52 kB / 301.5 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.01131, allocations: 5.953 kB / 301.5 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.01132, allocations: 36.84 kB / 301.5 MB, free: 7.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 4.859e-06/0.01133, allocations: 0 / 301.5 MB, free: 7.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003526/0.01168, allocations: 142.9 kB / 301.7 MB, free: 6.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.015e-05/0.0117, allocations: 58.12 kB / 301.7 MB, free: 6.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.01182, allocations: 198.8 kB / 301.9 MB, free: 6.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.374e-06/0.01183, allocations: 27.08 kB / 301.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/0.01188, allocations: 146.7 kB / 302.1 MB, free: 6.609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.0119, allocations: 29.45 kB / 302.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.01194, allocations: 36.03 kB / 302.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.088e-05/0.01198, allocations: 336.5 kB / 302.5 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.01201, allocations: 11.45 kB / 302.5 MB, free: 6.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.772e-05/0.01206, allocations: 79.58 kB / 302.6 MB, free: 6.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.606e-05/0.01215, allocations: 117.6 kB / 302.7 MB, free: 6.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.01215, allocations: 5.312 kB / 302.7 MB, free: 6.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001396/0.01229, allocations: 120.2 kB / 302.8 MB, free: 5.969 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.01231, allocations: 5.5 kB / 302.8 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01231, allocations: 6.688 kB / 302.8 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.01233, allocations: 4.438 kB / 302.8 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.01254, allocations: 55.03 kB / 302.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.01254, allocations: 7.391 kB / 302.9 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.637e-05/0.01261, allocations: 24.98 kB / 302.9 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.01262, allocations: 6.016 kB / 302.9 MB, free: 5.941 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 5.884e-05/0.01268, allocations: 113.5 kB / 303 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.01271, allocations: 15.38 kB / 303 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.01285, allocations: 77.81 kB / 303.1 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.01285, allocations: 6.266 kB / 303.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.01285, allocations: 1.375 kB / 303.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.01285, allocations: 0 / 303.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.01298, allocations: 112.7 kB / 303.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.01298, allocations: 0 / 303.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.01309, allocations: 33.75 kB / 303.3 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.01309, allocations: 5.312 kB / 303.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.0131, allocations: 4.984 kB / 303.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.0131, allocations: 1.375 kB / 303.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01311, allocations: 4.078 kB / 303.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.01322, allocations: 162.6 kB / 303.4 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.01326, allocations: 16.5 kB / 303.4 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.01328, allocations: 3.938 kB / 303.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.373e-05/0.01333, allocations: 9.031 kB / 303.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.01337, allocations: 4.859 kB / 303.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-06/0.01338, allocations: 1.312 kB / 303.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.74e-05/0.01346, allocations: 67.67 kB / 303.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01346, allocations: 0 / 303.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.01365, allocations: 45.83 kB / 303.6 MB, free: 5.465 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 9.124e-05/0.01374, allocations: 74.39 kB / 303.6 MB, free: 5.391 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.01386, allocations: 60.36 kB / 303.7 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.01387, allocations: 2.562 kB / 303.7 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.91e-05/0.0139, allocations: 24.48 kB / 303.7 MB, free: 5.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.01414, allocations: 38.81 kB / 303.8 MB, free: 5.344 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.001129/0.01527, allocations: 421 kB / 304.2 MB, free: 5.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.625e-05/0.01531, allocations: 71.86 kB / 304.3 MB, free: 5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.01538, allocations: 21.92 kB / 304.3 MB, free: 4.992 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.01548, allocations: 87.62 kB / 304.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01548, allocations: 0 / 304.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of Templates: time 0.004244/0.01973, allocations: 2.142 MB / 306.5 MB, free: 4.039 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8578779818490148]