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.001585/0.001585, allocations: 100.4 kB / 19.71 MB, free: 440 kB / 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.001909/0.001909, allocations: 220.2 kB / 23 MB, free: 2.957 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.115/1.115, allocations: 230.6 MB / 256.8 MB, free: 9.648 MB / 202.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.06839/0.06839, allocations: 17.16 MB / 330.3 MB, free: 0.7305 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.001556/0.001556, allocations: 67.89 kB / 460.8 MB, free: 27.02 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09993, allocations: 57.78 MB / 0.5064 GB, free: 1.137 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.003051/0.103, allocations: 2.619 MB / 0.509 GB, free: 14.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.1056, allocations: 1.991 MB / 0.5109 GB, free: 12.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.1057, allocations: 11.88 kB / 0.511 GB, free: 12.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1058, allocations: 27.72 kB / 0.511 GB, free: 12.46 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.0007375/0.1066, allocations: 266.5 kB / 0.5112 GB, free: 12.2 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.0005196/0.1071, allocations: 303.2 kB / 0.5115 GB, free: 11.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1073, allocations: 238.8 kB / 0.5118 GB, free: 11.67 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1075, allocations: 44.48 kB / 0.5118 GB, free: 11.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.1076, allocations: 95.59 kB / 0.5119 GB, free: 11.53 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1077, allocations: 79.55 kB / 0.512 GB, free: 11.45 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.1078, allocations: 12 kB / 0.512 GB, free: 11.44 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.357e-05/0.1078, allocations: 20 kB / 0.512 GB, free: 11.42 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.1078, allocations: 35.8 kB / 0.512 GB, free: 11.39 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.744e-05/0.1079, allocations: 75.66 kB / 0.5121 GB, free: 11.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.1081, allocations: 211 kB / 0.5123 GB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1081, allocations: 0 / 0.5123 GB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1081, allocations: 0 / 0.5123 GB, free: 11.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1082, allocations: 0 / 0.5123 GB, free: 11.11 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.0006015/0.1088, allocations: 425.3 kB / 0.5127 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1088, allocations: 12.03 kB / 0.5127 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.109, allocations: 44.78 kB / 0.5128 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.1092, allocations: 194.5 kB / 0.5129 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.1092, allocations: 12.36 kB / 0.513 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1092, allocations: 16.12 kB / 0.513 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.1094, allocations: 121.6 kB / 0.5131 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1095, allocations: 0 / 0.5131 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1095, allocations: 11.98 kB / 0.5131 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1095, allocations: 4 kB / 0.5131 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.1096, allocations: 83.94 kB / 0.5132 GB, free: 10.14 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.0006095/0.1102, allocations: 434.9 kB / 0.5136 GB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.1104, allocations: 74.48 kB / 0.5137 GB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.712e-05/0.1104, allocations: 32.84 kB / 0.5137 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.1104, allocations: 4 kB / 0.5137 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.1105, allocations: 30.56 kB / 0.5137 GB, free: 9.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1105, allocations: 0 / 0.5137 GB, free: 9.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.001019/0.1115, allocations: 428.8 kB / 0.5141 GB, free: 9.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.1115, allocations: 51.41 kB / 0.5142 GB, free: 9.031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.1117, allocations: 219.9 kB / 0.5144 GB, free: 8.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.1117, allocations: 29.7 kB / 0.5144 GB, free: 8.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.923e-05/0.1118, allocations: 160.3 kB / 0.5146 GB, free: 8.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.1118, allocations: 47.59 kB / 0.5146 GB, free: 8.562 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.1119, allocations: 45.7 kB / 0.5147 GB, free: 8.512 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.39e-05/0.112, allocations: 326.8 kB / 0.515 GB, free: 8.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1121, allocations: 67.89 kB / 0.5151 GB, free: 8.117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.1122, allocations: 133.3 kB / 0.5152 GB, free: 7.953 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1124, allocations: 208.5 kB / 0.5154 GB, free: 7.719 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1124, allocations: 0 / 0.5154 GB, free: 7.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002984/0.1127, allocations: 253.2 kB / 0.5156 GB, free: 7.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1128, allocations: 8 kB / 0.5156 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1128, allocations: 0 / 0.5156 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1128, allocations: 4 kB / 0.5156 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.113, allocations: 71.89 kB / 0.5157 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.113, allocations: 0 / 0.5157 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.128e-05/0.1131, allocations: 28.2 kB / 0.5157 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.1131, allocations: 12 kB / 0.5157 GB, free: 7.344 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 8.815e-05/0.1132, allocations: 133.7 kB / 0.5159 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.1132, allocations: 23.8 kB / 0.5159 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002993/0.1135, allocations: 191 kB / 0.5161 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1135, allocations: 4 kB / 0.5161 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1135, allocations: 4 kB / 0.5161 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1135, allocations: 3.938 kB / 0.5161 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.1137, allocations: 185.2 kB / 0.5163 GB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1137, allocations: 3.984 kB / 0.5163 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.1138, allocations: 47.97 kB / 0.5163 GB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1138, allocations: 0 / 0.5163 GB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.1138, allocations: 4 kB / 0.5163 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1138, allocations: 0 / 0.5163 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1138, allocations: 3.938 kB / 0.5163 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.1141, allocations: 291 kB / 0.5166 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.1141, allocations: 27.84 kB / 0.5166 GB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.1142, allocations: 4 kB / 0.5166 GB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.927e-05/0.1142, allocations: 11.98 kB / 0.5166 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.1143, allocations: 11.98 kB / 0.5166 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.1143, allocations: 4 kB / 0.5166 GB, free: 6.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.627e-05/0.1144, allocations: 149.5 kB / 0.5168 GB, free: 6.203 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1144, allocations: 0 / 0.5168 GB, free: 6.203 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001941/0.1146, allocations: 48 kB / 0.5168 GB, free: 6.156 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 8.678e-05/0.1147, allocations: 99.19 kB / 0.5169 GB, free: 6.047 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.1149, allocations: 151.8 kB / 0.5171 GB, free: 5.898 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1149, allocations: 4.625 kB / 0.5171 GB, free: 5.895 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.686e-05/0.115, allocations: 67.91 kB / 0.5171 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.1153, allocations: 52.5 kB / 0.5172 GB, free: 5.773 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006023/0.1159, allocations: 433.9 kB / 0.5176 GB, free: 5.316 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.317e-05/0.116, allocations: 113.3 kB / 0.5177 GB, free: 5.188 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.582e-05/0.1161, allocations: 31.42 kB / 0.5177 GB, free: 5.156 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1161, allocations: 0 / 0.5177 GB, free: 5.156 MB / 378.7 MB Notification: Performance of Templates: time 0.00317/0.1193, allocations: 2.572 MB / 0.5203 GB, free: 2.605 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 > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.1210355893708766]