Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.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.00131/0.00131, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.001224/0.001224, allocations: 169 kB / 24.05 MB, free: 456 kB / 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.9988/0.9988, allocations: 177.1 MB / 204.5 MB, free: 5.492 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.07081/0.07081, allocations: 12.77 MB / 273.8 MB, free: 104 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.Chemical.Examples.MichaelisMenten,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.MichaelisMenten") translateModel(Bodylight.Chemical.Examples.MichaelisMenten,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.MichaelisMenten") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 347.9 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.222e-05/1.352e-05, allocations: 4.703 kB / 347.9 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.MichaelisMenten): time 0.002739/0.002752, allocations: 3.337 MB / 351.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.006317, allocations: 2.875 MB / 354.1 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.006492, allocations: 19.81 kB / 354.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.006669, allocations: 75.22 kB / 354.2 MB, free: 10.6 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.MichaelisMenten.ES.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.Chemical.Examples.MichaelisMenten.ES.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.MichaelisMenten.ES.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.MichaelisMenten.E.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.Chemical.Examples.MichaelisMenten.E.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.MichaelisMenten.E.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001071/0.00774, allocations: 473.3 kB / 354.7 MB, free: 10.13 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.MichaelisMenten.ES.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.Chemical.Examples.MichaelisMenten.ES.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Chemical.Examples.MichaelisMenten.E.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.Chemical.Examples.MichaelisMenten.E.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0007644/0.008504, allocations: 470.5 kB / 355.2 MB, free: 9.672 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.008974, allocations: 0.5014 MB / 355.7 MB, free: 9.168 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.009122, allocations: 65.17 kB / 355.7 MB, free: 9.102 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.009323, allocations: 243.3 kB / 356 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.00956, allocations: 207.4 kB / 356.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.009594, allocations: 24 kB / 356.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.293e-05/0.009657, allocations: 28 kB / 356.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.244e-05/0.009739, allocations: 91.64 kB / 356.3 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.582e-05/0.009835, allocations: 127.6 kB / 356.4 MB, free: 8.395 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.01015, allocations: 330.8 kB / 356.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.01015, allocations: 0 / 356.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.01015, allocations: 0 / 356.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.01015, allocations: 4 kB / 356.8 MB, free: 8.066 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0009673/0.01112, allocations: 0.7096 MB / 357.5 MB, free: 7.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.01115, allocations: 19.98 kB / 357.5 MB, free: 7.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.01132, allocations: 72.64 kB / 357.6 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.01165, allocations: 341.3 kB / 357.9 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.01167, allocations: 12.88 kB / 357.9 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.0117, allocations: 24.36 kB / 357.9 MB, free: 6.836 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.01187, allocations: 168.9 kB / 358.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.01188, allocations: 3.938 kB / 358.1 MB, free: 6.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.01189, allocations: 8 kB / 358.1 MB, free: 6.645 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.0119, allocations: 4 kB / 358.1 MB, free: 6.641 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.773e-05/0.01199, allocations: 67.44 kB / 358.2 MB, free: 6.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007624/0.01275, allocations: 0.5917 MB / 358.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.01295, allocations: 137.4 kB / 358.9 MB, free: 5.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.13e-05/0.01301, allocations: 51.48 kB / 358.9 MB, free: 5.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.01302, allocations: 4 kB / 359 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.01304, allocations: 45.31 kB / 359 MB, free: 5.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.01304, allocations: 4 kB / 359 MB, free: 5.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.001976/0.01502, allocations: 0.6629 MB / 359.7 MB, free: 4.992 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.01505, allocations: 85.14 kB / 359.7 MB, free: 4.891 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.01526, allocations: 390.5 kB / 360.1 MB, free: 4.492 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.01528, allocations: 29.7 kB / 360.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.01538, allocations: 259.3 kB / 360.4 MB, free: 4.199 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.01544, allocations: 99.14 kB / 360.5 MB, free: 4.102 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-05/0.01551, allocations: 63.34 kB / 360.6 MB, free: 4.031 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.01563, allocations: 0.5234 MB / 361.1 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.01568, allocations: 31.97 kB / 361.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.01578, allocations: 149.3 kB / 361.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.01596, allocations: 199.8 kB / 361.5 MB, free: 3.035 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01596, allocations: 0 / 361.5 MB, free: 3.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001022/0.01698, allocations: 458.2 kB / 361.9 MB, free: 2.574 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.017, allocations: 4 kB / 361.9 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.017, allocations: 4 kB / 361.9 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.01832, allocations: 358.9 kB / 362.3 MB, free: 2.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.806e-05/0.01841, allocations: 39.92 kB / 362.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00329/0.0217, allocations: 4.612 MB / 366.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.02182, allocations: 8 kB / 366.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.02183, allocations: 12 kB / 366.9 MB, free: 13.32 MB / 298.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.02194, allocations: 176.5 kB / 367.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/0.02199, allocations: 51.66 kB / 367.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.02205, allocations: 51.59 kB / 367.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.02205, allocations: 8.031 kB / 367.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.02205, allocations: 4 kB / 367.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.02206, allocations: 0 / 367.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.02333, allocations: 0.6958 MB / 367.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.02333, allocations: 3.984 kB / 367.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.051e-05/0.02338, allocations: 20 kB / 367.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.02466, allocations: 346.7 kB / 368.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.02468, allocations: 4 kB / 368.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002528/0.02721, allocations: 4.28 MB / 372.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.02721, allocations: 0 / 372.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.02852, allocations: 0.5591 MB / 373.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.75e-05/0.0286, allocations: 75.56 kB / 373.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.02863, allocations: 8 kB / 373.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.02873, allocations: 8 kB / 373.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.02877, allocations: 19.95 kB / 373.2 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.02878, allocations: 4 kB / 373.2 MB, free: 6.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.0289, allocations: 255 kB / 373.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.0289, allocations: 0 / 373.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003743/0.02927, allocations: 140 kB / 373.6 MB, free: 6.305 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (state[1]) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 8.317e-05/0.02936, allocations: 95.25 kB / 373.7 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004808/0.02984, allocations: 0.5297 MB / 374.2 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.02984, allocations: 4 kB / 374.3 MB, free: 5.633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.03015, allocations: 479.5 kB / 374.7 MB, free: 5.125 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.03047, allocations: 77.36 kB / 374.8 MB, free: 5.051 MB / 298.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal/mol: Unit not found Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.0317, allocations: 0.6762 MB / 375.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.957e-05/0.03177, allocations: 117.1 kB / 375.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.636e-05/0.03184, allocations: 34.95 kB / 375.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.03196, allocations: 134.2 kB / 375.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.03196, allocations: 0 / 375.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of Templates: time 0.01167/0.04363, allocations: 10.92 MB / 386.7 MB, free: 9.184 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.sim & ./Bodylight_Bodylight.Chemical.Examples.MichaelisMenten -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.133996122982353]