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.0008321/0.0008321, 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.0009353/0.0009353, allocations: 177 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 0.9512/0.9512, allocations: 177.1 MB / 203.8 MB, free: 5.496 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.05518/0.05518, allocations: 12.76 MB / 273 MB, free: 188 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.943e-06/1.943e-06, allocations: 1.219 kB / 294 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.281e-05/1.475e-05, allocations: 2.312 kB / 294 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.00268/0.002695, allocations: 2.77 MB / 296.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.005132, allocations: 2.062 MB / 298.8 MB, free: 8.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.005234, allocations: 8.812 kB / 298.8 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.005355, allocations: 25.7 kB / 298.9 MB, free: 8.777 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.0006487/0.006004, allocations: 279.5 kB / 299.1 MB, free: 8.625 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.0004919/0.006496, allocations: 307 kB / 299.4 MB, free: 8.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.006728, allocations: 250.8 kB / 299.7 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.006835, allocations: 46.28 kB / 299.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.007004, allocations: 131.6 kB / 299.9 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.007108, allocations: 69.25 kB / 299.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.007126, allocations: 10.06 kB / 299.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.085e-05/0.007177, allocations: 23.05 kB / 300 MB, free: 8.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.0072, allocations: 29.39 kB / 300 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.988e-05/0.00725, allocations: 62 kB / 300 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.00743, allocations: 154.8 kB / 300.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.007432, allocations: 0 / 300.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.007433, allocations: 0.5625 kB / 300.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.007437, allocations: 1.781 kB / 300.2 MB, free: 8.141 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.0004382/0.007875, allocations: 399.7 kB / 300.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.007914, allocations: 12.98 kB / 300.6 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.008064, allocations: 37.91 kB / 300.6 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.008267, allocations: 188.5 kB / 300.8 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.00828, allocations: 16.53 kB / 300.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.008298, allocations: 12.78 kB / 300.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.008445, allocations: 114.5 kB / 301 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.008457, allocations: 3.938 kB / 301 MB, free: 7.555 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.008471, allocations: 5.375 kB / 301 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.00848, allocations: 2.75 kB / 301 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.833e-05/0.008539, allocations: 27 kB / 301 MB, free: 7.551 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.0004604/0.008999, allocations: 361.4 kB / 301.4 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.004e-05/0.009079, allocations: 42.5 kB / 301.4 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.575e-05/0.009105, allocations: 22.05 kB / 301.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.009118, allocations: 10.47 kB / 301.4 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.009133, allocations: 32.83 kB / 301.5 MB, free: 7.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.009134, allocations: 0 / 301.5 MB, free: 7.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.000333/0.009467, allocations: 148.8 kB / 301.6 MB, free: 7.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.009e-05/0.009487, allocations: 52.5 kB / 301.7 MB, free: 7.082 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.009598, allocations: 200.1 kB / 301.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-06/0.009605, allocations: 25.7 kB / 301.9 MB, free: 6.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.186e-05/0.009657, allocations: 143.2 kB / 302 MB, free: 6.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.009673, allocations: 33.42 kB / 302 MB, free: 6.758 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.819e-05/0.009711, allocations: 36.08 kB / 302.1 MB, free: 6.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.571e-05/0.009747, allocations: 329.7 kB / 302.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.877e-05/0.009766, allocations: 11.09 kB / 302.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.009808, allocations: 82.09 kB / 302.5 MB, free: 6.316 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.383e-05/0.009892, allocations: 117.5 kB / 302.6 MB, free: 6.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.009894, allocations: 1.594 kB / 302.6 MB, free: 6.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001238/0.01002, allocations: 119.8 kB / 302.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.01003, allocations: 5.625 kB / 302.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01004, allocations: 2.656 kB / 302.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.01005, allocations: 4 kB / 302.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.01016, allocations: 44.86 kB / 302.8 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.01017, allocations: 8.094 kB / 302.8 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.739e-05/0.01023, allocations: 24.38 kB / 302.8 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.01023, allocations: 10.11 kB / 302.8 MB, free: 6.121 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 4.627e-05/0.01028, allocations: 118.7 kB / 302.9 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.0103, allocations: 14.12 kB / 303 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-05/0.0104, allocations: 74.2 kB / 303 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.0104, allocations: 1.219 kB / 303 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.01041, allocations: 2.219 kB / 303 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01041, allocations: 0 / 303 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.01052, allocations: 112.5 kB / 303.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.01052, allocations: 1.375 kB / 303.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.892e-05/0.01059, allocations: 24.31 kB / 303.2 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.01059, allocations: 3.938 kB / 303.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.0106, allocations: 5.922 kB / 303.2 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.0106, allocations: 4.078 kB / 303.2 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.0106, allocations: 5.359 kB / 303.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.281e-05/0.01069, allocations: 163.1 kB / 303.3 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.053e-05/0.01072, allocations: 14.95 kB / 303.4 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.01073, allocations: 5.312 kB / 303.4 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.599e-05/0.01078, allocations: 7.641 kB / 303.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.0108, allocations: 5.938 kB / 303.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-06/0.01081, allocations: 6.031 kB / 303.4 MB, free: 5.676 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.943e-05/0.01086, allocations: 60.52 kB / 303.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01086, allocations: 0 / 303.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001635/0.01102, allocations: 44.89 kB / 303.5 MB, free: 5.645 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 5.919e-05/0.01108, allocations: 72.17 kB / 303.6 MB, free: 5.574 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.4e-05/0.01118, allocations: 61.84 kB / 303.6 MB, free: 5.551 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.01118, allocations: 6.812 kB / 303.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.68e-05/0.01121, allocations: 24.08 kB / 303.6 MB, free: 5.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.01141, allocations: 40.12 kB / 303.7 MB, free: 5.52 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.0009674/0.01237, allocations: 416.1 kB / 304.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.13e-05/0.0124, allocations: 69.22 kB / 304.2 MB, free: 5.184 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.593e-05/0.01246, allocations: 19.92 kB / 304.2 MB, free: 5.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.079e-05/0.01255, allocations: 95.7 kB / 304.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01255, allocations: 0 / 304.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of Templates: time 0.003728/0.01628, allocations: 2.077 MB / 306.3 MB, free: 4.262 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 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7660716348327696]