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.0009112/0.0009112, allocations: 88.52 kB / 19.93 MB, free: 4.605 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.0009154/0.0009154, allocations: 174.3 kB / 23.21 MB, free: 1.328 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.9313/0.9313, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.05376/0.05376, allocations: 12.74 MB / 272.7 MB, free: 0.4922 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: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 3.938 kB / 403.2 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.767e-05, allocations: 2.281 kB / 403.2 MB, free: 8.77 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.002414/0.002431, allocations: 2.635 MB / 405.8 MB, free: 6.125 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.004583, allocations: 1.994 MB / 407.8 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.004688, allocations: 7.938 kB / 407.8 MB, free: 4.113 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.004811, allocations: 35.59 kB / 407.9 MB, free: 4.078 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.0006155/0.005427, allocations: 270.5 kB / 408.1 MB, free: 3.812 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.0004161/0.005843, allocations: 299 kB / 408.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.006051, allocations: 250.6 kB / 408.7 MB, free: 3.273 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.006166, allocations: 48.33 kB / 408.7 MB, free: 3.227 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.006328, allocations: 123.6 kB / 408.8 MB, free: 3.105 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.223e-05/0.00642, allocations: 63.81 kB / 408.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.00644, allocations: 12 kB / 408.9 MB, free: 3.031 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.147e-05/0.006491, allocations: 23.94 kB / 408.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.006516, allocations: 31.84 kB / 409 MB, free: 2.977 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.225e-05/0.006568, allocations: 71.77 kB / 409 MB, free: 2.906 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.006774, allocations: 195.4 kB / 409.2 MB, free: 2.715 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.006776, allocations: 4 kB / 409.2 MB, free: 2.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006777, allocations: 0 / 409.2 MB, free: 2.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.006781, allocations: 0 / 409.2 MB, free: 2.711 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.0004992/0.007281, allocations: 431.7 kB / 409.6 MB, free: 2.262 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.007311, allocations: 11.98 kB / 409.7 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.007437, allocations: 32.83 kB / 409.7 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.007656, allocations: 208.8 kB / 409.9 MB, free: 1.988 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.007669, allocations: 8.375 kB / 409.9 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.007685, allocations: 12.38 kB / 409.9 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.00786, allocations: 122.2 kB / 410 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.00787, allocations: 3.938 kB / 410 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.007883, allocations: 8 kB / 410 MB, free: 1.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.007888, allocations: 3.938 kB / 410 MB, free: 1.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.008026, allocations: 91.94 kB / 410.1 MB, free: 1.738 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.0005381/0.008564, allocations: 431.2 kB / 410.6 MB, free: 1.277 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.008691, allocations: 58.56 kB / 410.6 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.6e-05/0.008747, allocations: 40.77 kB / 410.7 MB, free: 1.168 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.008763, allocations: 4 kB / 410.7 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.008781, allocations: 34.56 kB / 410.7 MB, free: 1.121 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.008782, allocations: 0 / 410.7 MB, free: 1.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.000945/0.009727, allocations: 437.2 kB / 411.1 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.009755, allocations: 55.34 kB / 411.2 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.009892, allocations: 208 kB / 411.4 MB, free: 416 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.009908, allocations: 33.7 kB / 411.4 MB, free: 376 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.009975, allocations: 152.3 kB / 411.6 MB, free: 220 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.01, allocations: 47.64 kB / 411.6 MB, free: 172 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.01005, allocations: 41.66 kB / 411.6 MB, free: 124 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.1333/0.1433, allocations: 333.8 kB / 412 MB, free: 21.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.1435, allocations: 60.58 kB / 412 MB, free: 21.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.1437, allocations: 139.2 kB / 412.2 MB, free: 21.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.144, allocations: 212.7 kB / 412.4 MB, free: 21.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.144, allocations: 1.312 kB / 412.4 MB, free: 21.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003404/0.1443, allocations: 239 kB / 412.6 MB, free: 21.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1443, allocations: 7.703 kB / 412.6 MB, free: 21.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.1443, allocations: 2.594 kB / 412.6 MB, free: 21.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1444, allocations: 3.609 kB / 412.6 MB, free: 21.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1446, allocations: 72.88 kB / 412.7 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.1446, allocations: 13.03 kB / 412.7 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1447, allocations: 20.38 kB / 412.7 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.1447, allocations: 12.28 kB / 412.7 MB, free: 21.12 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 8.748e-05/0.1448, allocations: 135.9 kB / 412.9 MB, free: 21.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1448, allocations: 17.61 kB / 412.9 MB, free: 21.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003509/0.1452, allocations: 195.3 kB / 413.1 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1452, allocations: 1.531 kB / 413.1 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1452, allocations: 6.016 kB / 413.1 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1452, allocations: 2.25 kB / 413.1 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.1454, allocations: 184.5 kB / 413.3 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1454, allocations: 0.5625 kB / 413.3 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.1456, allocations: 48.42 kB / 413.3 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1456, allocations: 3.5 kB / 413.3 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1456, allocations: 4.609 kB / 413.3 MB, free: 20.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1456, allocations: 6.016 kB / 413.3 MB, free: 20.83 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1456, allocations: 0 / 413.3 MB, free: 20.83 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.1459, allocations: 278 kB / 413.6 MB, free: 20.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.76e-05/0.146, allocations: 28.58 kB / 413.6 MB, free: 20.65 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.146, allocations: 6.219 kB / 413.6 MB, free: 20.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-05/0.1461, allocations: 10.12 kB / 413.6 MB, free: 20.65 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.1461, allocations: 13.47 kB / 413.7 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.1461, allocations: 10.61 kB / 413.7 MB, free: 20.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.798e-05/0.1462, allocations: 144.5 kB / 413.8 MB, free: 20.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1462, allocations: 3.609 kB / 413.8 MB, free: 20.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.1464, allocations: 47.94 kB / 413.9 MB, free: 20.54 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 6.118e-05/0.1465, allocations: 93.83 kB / 414 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.1468, allocations: 163.7 kB / 414.1 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1468, allocations: 0 / 414.1 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1469, allocations: 69.73 kB / 414.2 MB, free: 20.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007375/0.1476, allocations: 48.67 kB / 414.2 MB, free: 20.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006082/0.1482, allocations: 403.4 kB / 414.6 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.93e-05/0.1483, allocations: 124.4 kB / 414.7 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.236e-05/0.1484, allocations: 27.62 kB / 414.8 MB, free: 20.02 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1484, allocations: 0 / 414.8 MB, free: 20.02 MB / 330.7 MB Notification: Performance of Templates: time 0.004836/0.1532, allocations: 2.569 MB / 417.3 MB, free: 19.79 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 > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.7283249869942665]