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.00172/0.00172, allocations: 105.5 kB / 18.95 MB, free: 1.18 MB / 13.93 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.001834/0.001834, allocations: 219.6 kB / 22.25 MB, free: 3.57 MB / 13.93 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.889/1.889, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.7 MB " [Timeout remaining time 178] 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.1134/0.1134, allocations: 17.17 MB / 329.6 MB, free: 0.7148 MB / 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: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004949/0.004949, allocations: 71.88 kB / 460.8 MB, free: 26.21 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1269, allocations: 57.76 MB / 0.5064 GB, free: 356 kB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.00471/0.1316, allocations: 2.632 MB / 0.509 GB, free: 13.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.1357, allocations: 1.983 MB / 0.511 GB, free: 11.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.1358, allocations: 11.88 kB / 0.511 GB, free: 11.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.136, allocations: 27.72 kB / 0.511 GB, free: 11.68 MB / 378.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.0008833/0.1369, allocations: 274.4 kB / 0.5113 GB, free: 11.41 MB / 378.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.0007402/0.1376, allocations: 307.1 kB / 0.5115 GB, free: 11.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.138, allocations: 246.6 kB / 0.5118 GB, free: 10.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.1381, allocations: 43.53 kB / 0.5118 GB, free: 10.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.1384, allocations: 99.62 kB / 0.5119 GB, free: 10.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1385, allocations: 71.64 kB / 0.512 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.1386, allocations: 12 kB / 0.512 GB, free: 10.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.637e-05/0.1386, allocations: 20 kB / 0.512 GB, free: 10.62 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.578e-05/0.1387, allocations: 35.78 kB / 0.5121 GB, free: 10.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.634e-05/0.1388, allocations: 71.61 kB / 0.5121 GB, free: 10.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003537/0.1391, allocations: 207.1 kB / 0.5123 GB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1391, allocations: 3.984 kB / 0.5123 GB, free: 10.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1391, allocations: 0 / 0.5123 GB, free: 10.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1391, allocations: 0 / 0.5123 GB, free: 10.31 MB / 378.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.0008094/0.14, allocations: 437.2 kB / 0.5127 GB, free: 9.855 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.14, allocations: 8.031 kB / 0.5127 GB, free: 9.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.1402, allocations: 40.72 kB / 0.5128 GB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.1406, allocations: 194.6 kB / 0.513 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1406, allocations: 12.38 kB / 0.513 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.1406, allocations: 20.06 kB / 0.513 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.1409, allocations: 113.6 kB / 0.5131 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.1409, allocations: 0 / 0.5131 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.1409, allocations: 7.984 kB / 0.5131 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.141, allocations: 0 / 0.5131 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.1412, allocations: 83.95 kB / 0.5132 GB, free: 9.355 MB / 378.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.0009135/0.1421, allocations: 438.9 kB / 0.5136 GB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.1423, allocations: 70.48 kB / 0.5137 GB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.797e-05/0.1424, allocations: 32.84 kB / 0.5137 GB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.1424, allocations: 7.984 kB / 0.5137 GB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1425, allocations: 30.56 kB / 0.5138 GB, free: 8.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.1425, allocations: 0 / 0.5138 GB, free: 8.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.00173/0.1442, allocations: 433.4 kB / 0.5142 GB, free: 8.301 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.1442, allocations: 55.41 kB / 0.5142 GB, free: 8.234 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003833/0.1446, allocations: 216 kB / 0.5144 GB, free: 8.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1447, allocations: 29.7 kB / 0.5145 GB, free: 7.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.1448, allocations: 152.1 kB / 0.5146 GB, free: 7.824 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.831e-05/0.1448, allocations: 51.53 kB / 0.5146 GB, free: 7.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.1449, allocations: 41.7 kB / 0.5147 GB, free: 7.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1451, allocations: 334.8 kB / 0.515 GB, free: 7.391 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.1453, allocations: 59.95 kB / 0.5151 GB, free: 7.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.1455, allocations: 133.3 kB / 0.5152 GB, free: 7.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004204/0.1459, allocations: 212.5 kB / 0.5154 GB, free: 6.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1459, allocations: 0 / 0.5154 GB, free: 6.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005161/0.1464, allocations: 249.2 kB / 0.5156 GB, free: 6.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1465, allocations: 11.94 kB / 0.5156 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1465, allocations: 80 / 0.5156 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.1465, allocations: 4 kB / 0.5156 GB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.1468, allocations: 71.89 kB / 0.5157 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.1469, allocations: 20.23 kB / 0.5157 GB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.147, allocations: 19.92 kB / 0.5158 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.1471, allocations: 12 kB / 0.5158 GB, free: 6.543 MB / 378.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 0.0001461/0.1472, allocations: 133.7 kB / 0.5159 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.809e-05/0.1472, allocations: 23.84 kB / 0.5159 GB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005013/0.1478, allocations: 191 kB / 0.5161 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1478, allocations: 4 kB / 0.5161 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1478, allocations: 0 / 0.5161 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1478, allocations: 7.922 kB / 0.5161 GB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.1481, allocations: 185.2 kB / 0.5163 GB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1481, allocations: 0 / 0.5163 GB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.1483, allocations: 43.97 kB / 0.5163 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.1483, allocations: 4 kB / 0.5163 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1483, allocations: 4 kB / 0.5163 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1483, allocations: 7.984 kB / 0.5163 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1483, allocations: 0 / 0.5163 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004659/0.1488, allocations: 275.3 kB / 0.5166 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/0.1489, allocations: 27.84 kB / 0.5166 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.1489, allocations: 4 kB / 0.5166 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1491, allocations: 11.98 kB / 0.5166 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.1492, allocations: 11.98 kB / 0.5167 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1492, allocations: 4 kB / 0.5167 GB, free: 5.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000164/0.1493, allocations: 153.5 kB / 0.5168 GB, free: 5.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1493, allocations: 0 / 0.5168 GB, free: 5.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003072/0.1497, allocations: 48 kB / 0.5169 GB, free: 5.363 MB / 378.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 0.0001156/0.1498, allocations: 95.19 kB / 0.5169 GB, free: 5.258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004321/0.1502, allocations: 160.1 kB / 0.5171 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1502, allocations: 0 / 0.5171 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.1504, allocations: 67.91 kB / 0.5172 GB, free: 5.039 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1508, allocations: 52.52 kB / 0.5172 GB, free: 4.984 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000852/0.1517, allocations: 404.2 kB / 0.5176 GB, free: 4.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.1518, allocations: 117.3 kB / 0.5177 GB, free: 4.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1519, allocations: 29.56 kB / 0.5177 GB, free: 4.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.152, allocations: 27.42 kB / 0.5178 GB, free: 4.375 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.152, allocations: 0 / 0.5178 GB, free: 4.375 MB / 378.7 MB Notification: Performance of Templates: time 0.006749/0.1587, allocations: 2.57 MB / 0.5203 GB, free: 1.863 MB / 378.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: 5.851159426849335]