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.002211/0.002211, allocations: 76.44 kB / 19.17 MB, free: 0.7422 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.007544/0.007544, allocations: 169.2 kB / 22.46 MB, free: 2.102 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.726/1.726, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.1005/0.1005, allocations: 12.75 MB / 271.9 MB, free: 492 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.533e-06/1.533e-06, allocations: 0 / 403.2 MB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.201e-05/3.354e-05, allocations: 2.281 kB / 403.2 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.004813/0.004847, allocations: 2.635 MB / 405.8 MB, free: 5.336 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004306/0.009152, allocations: 1.99 MB / 407.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.009314, allocations: 7.938 kB / 407.8 MB, free: 3.328 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.009492, allocations: 35.59 kB / 407.9 MB, free: 3.293 MB / 330.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.0009739/0.01047, allocations: 266.5 kB / 408.1 MB, free: 3.031 MB / 330.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.0008155/0.01128, allocations: 309.8 kB / 408.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.01167, allocations: 242.7 kB / 408.7 MB, free: 2.492 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.01183, allocations: 48.33 kB / 408.7 MB, free: 2.445 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.01213, allocations: 131.6 kB / 408.9 MB, free: 2.316 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.01228, allocations: 67.73 kB / 408.9 MB, free: 2.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.01231, allocations: 8 kB / 408.9 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.137e-05/0.01239, allocations: 24 kB / 408.9 MB, free: 2.219 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.01244, allocations: 31.84 kB / 409 MB, free: 2.188 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.01255, allocations: 59.84 kB / 409 MB, free: 2.129 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.01295, allocations: 203.3 kB / 409.2 MB, free: 1.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.01295, allocations: 4 kB / 409.2 MB, free: 1.926 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.01295, allocations: 0 / 409.2 MB, free: 1.926 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.01296, allocations: 0 / 409.2 MB, free: 1.926 MB / 330.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.001169/0.01413, allocations: 425.2 kB / 409.7 MB, free: 1.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.01418, allocations: 15.98 kB / 409.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.01443, allocations: 32.83 kB / 409.7 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.01479, allocations: 200.8 kB / 409.9 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.01481, allocations: 12.38 kB / 409.9 MB, free: 1.199 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.01484, allocations: 12.38 kB / 409.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.01513, allocations: 122.2 kB / 410 MB, free: 1.062 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.01515, allocations: 7.922 kB / 410.1 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.01517, allocations: 4 kB / 410.1 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.01518, allocations: 8 kB / 410.1 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002715/0.01545, allocations: 91.94 kB / 410.2 MB, free: 0.9531 MB / 330.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.0009761/0.01642, allocations: 431.1 kB / 410.6 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.01664, allocations: 62.56 kB / 410.6 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.01676, allocations: 48.77 kB / 410.7 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.01678, allocations: 0 / 410.7 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.01682, allocations: 30.56 kB / 410.7 MB, free: 340 kB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.01682, allocations: 0 / 410.7 MB, free: 340 kB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.2241/0.2409, allocations: 435.5 kB / 411.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.2409, allocations: 52.91 kB / 411.2 MB, free: 21.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.2412, allocations: 210.3 kB / 411.4 MB, free: 21.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.2412, allocations: 32.25 kB / 411.4 MB, free: 21.63 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.404e-05/0.2413, allocations: 150.2 kB / 411.6 MB, free: 21.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.2414, allocations: 44.91 kB / 411.6 MB, free: 21.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.21e-05/0.2414, allocations: 48.23 kB / 411.7 MB, free: 21.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.2415, allocations: 335.4 kB / 412 MB, free: 21.17 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.2417, allocations: 59.52 kB / 412 MB, free: 21.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.2419, allocations: 134.2 kB / 412.2 MB, free: 21.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004341/0.2423, allocations: 209.2 kB / 412.4 MB, free: 21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2423, allocations: 1.875 kB / 412.4 MB, free: 21 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005284/0.2428, allocations: 247.1 kB / 412.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2429, allocations: 9.625 kB / 412.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2429, allocations: 7.062 kB / 412.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.2429, allocations: 3.094 kB / 412.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.2433, allocations: 65.78 kB / 412.7 MB, free: 20.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.2433, allocations: 8.906 kB / 412.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.2435, allocations: 20.72 kB / 412.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.2435, allocations: 12.86 kB / 412.8 MB, free: 20.9 MB / 330.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 9.998e-05/0.2436, allocations: 138 kB / 412.9 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.2436, allocations: 16.78 kB / 412.9 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004385/0.2441, allocations: 194.4 kB / 413.1 MB, free: 20.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2441, allocations: 1.562 kB / 413.1 MB, free: 20.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2441, allocations: 0.75 kB / 413.1 MB, free: 20.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2441, allocations: 2.781 kB / 413.1 MB, free: 20.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002458/0.2443, allocations: 188.5 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2443, allocations: 0.9375 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.2446, allocations: 56.92 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2446, allocations: 1.312 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.2446, allocations: 2.125 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2446, allocations: 3.938 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2446, allocations: 1.469 kB / 413.3 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004228/0.245, allocations: 270.7 kB / 413.6 MB, free: 20.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.117e-05/0.2451, allocations: 31.61 kB / 413.6 MB, free: 20.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.2451, allocations: 1.562 kB / 413.6 MB, free: 20.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.2453, allocations: 18.86 kB / 413.7 MB, free: 20.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.2454, allocations: 11.47 kB / 413.7 MB, free: 20.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2454, allocations: 7.156 kB / 413.7 MB, free: 20.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.2455, allocations: 149.3 kB / 413.8 MB, free: 20.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2455, allocations: 3.531 kB / 413.8 MB, free: 20.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002971/0.2458, allocations: 43.5 kB / 413.9 MB, free: 20.21 MB / 330.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.0001007/0.2459, allocations: 104.8 kB / 414 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004243/0.2463, allocations: 161.5 kB / 414.1 MB, free: 20.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2463, allocations: 0 / 414.1 MB, free: 20.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.2465, allocations: 65.8 kB / 414.2 MB, free: 20.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.2469, allocations: 37.12 kB / 414.2 MB, free: 20.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.2476, allocations: 386.2 kB / 414.6 MB, free: 19.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.2477, allocations: 117 kB / 414.7 MB, free: 19.72 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.2478, allocations: 22.75 kB / 414.7 MB, free: 19.72 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.924e-05/0.2479, allocations: 27.05 kB / 414.8 MB, free: 19.71 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2479, allocations: 0 / 414.8 MB, free: 19.71 MB / 330.7 MB Notification: Performance of Templates: time 0.007145/0.255, allocations: 2.341 MB / 417.1 MB, free: 19.43 MB / 330.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.7304659420624375]