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.001087/0.001087, allocations: 92.22 kB / 19.65 MB, free: 276 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.00173/0.00173, allocations: 173 kB / 23.02 MB, free: 1.547 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.066/1.066, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.05843/0.05843, allocations: 12.75 MB / 272.7 MB, free: 284 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.473e-06/1.473e-06, allocations: 0 / 346.7 MB, free: 1.227 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.841e-05/1.988e-05, allocations: 2.312 kB / 346.7 MB, free: 1.223 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.MichaelisMenten): time 0.006728/0.006747, allocations: 3.358 MB / 350.1 MB, free: 13.85 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007162/0.01391, allocations: 2.965 MB / 353 MB, free: 10.87 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.01409, allocations: 19.75 kB / 353.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.01429, allocations: 71.3 kB / 353.1 MB, free: 10.78 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.004283/0.01857, allocations: 477.2 kB / 353.6 MB, free: 10.31 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.0008429/0.01941, allocations: 466.6 kB / 354 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004835/0.0199, allocations: 0.5091 MB / 354.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.02004, allocations: 58.14 kB / 354.6 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.02026, allocations: 239.4 kB / 354.8 MB, free: 9.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.02053, allocations: 211.3 kB / 355 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.02057, allocations: 28 kB / 355.1 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.492e-05/0.02065, allocations: 24 kB / 355.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.115e-05/0.02074, allocations: 91.66 kB / 355.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003221/0.02396, allocations: 127.6 kB / 355.3 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003916/0.02435, allocations: 330.7 kB / 355.6 MB, free: 8.254 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.02436, allocations: 0 / 355.6 MB, free: 8.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.02436, allocations: 0 / 355.6 MB, free: 8.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.02436, allocations: 0 / 355.6 MB, free: 8.254 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.0009164/0.02528, allocations: 0.7293 MB / 356.4 MB, free: 7.488 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.02532, allocations: 11.98 kB / 356.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.02552, allocations: 72.66 kB / 356.4 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.02596, allocations: 357.2 kB / 356.8 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.02598, allocations: 16.88 kB / 356.8 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.02602, allocations: 20.38 kB / 356.8 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.02628, allocations: 177 kB / 357 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.02629, allocations: 3.938 kB / 357 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.02631, allocations: 8 kB / 357 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.02632, allocations: 8 kB / 357 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.02648, allocations: 78.88 kB / 357.1 MB, free: 6.711 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004043/0.03052, allocations: 0.6692 MB / 357.8 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.03082, allocations: 138.1 kB / 357.9 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.483e-05/0.0309, allocations: 51.42 kB / 358 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.03092, allocations: 4 kB / 358 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.03094, allocations: 45.38 kB / 358 MB, free: 5.723 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.03094, allocations: 0 / 358 MB, free: 5.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002585/0.03353, allocations: 0.8458 MB / 358.9 MB, free: 4.863 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.03356, allocations: 89.05 kB / 358.9 MB, free: 4.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.03386, allocations: 394.6 kB / 359.3 MB, free: 4.355 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.03388, allocations: 33.7 kB / 359.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.03403, allocations: 259.4 kB / 359.6 MB, free: 4.059 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.075e-05/0.0341, allocations: 91.22 kB / 359.7 MB, free: 3.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.0342, allocations: 59.36 kB / 359.8 MB, free: 3.902 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.03435, allocations: 0.5313 MB / 360.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.03447, allocations: 39.97 kB / 360.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.03466, allocations: 148.8 kB / 360.5 MB, free: 3.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.03494, allocations: 223.8 kB / 360.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.03494, allocations: 0 / 360.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001292/0.03623, allocations: 490.4 kB / 361.2 MB, free: 2.375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.03625, allocations: 7.938 kB / 361.2 MB, free: 2.367 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.03626, allocations: 4 kB / 361.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/0.03798, allocations: 410.5 kB / 361.6 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.547e-05/0.03807, allocations: 35.98 kB / 361.6 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/0.04118, allocations: 4.708 MB / 366.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.0413, allocations: 19.98 kB / 366.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.04131, allocations: 12 kB / 366.4 MB, free: 12.94 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.0001115/0.04143, allocations: 180.4 kB / 366.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.04147, allocations: 47.72 kB / 366.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.04152, allocations: 59.59 kB / 366.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.04153, allocations: 4.125 kB / 366.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.04153, allocations: 4 kB / 366.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.04154, allocations: 0 / 366.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.0429, allocations: 0.7967 MB / 367.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.04291, allocations: 0 / 367.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.485e-05/0.04296, allocations: 23.98 kB / 367.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.04425, allocations: 382.7 kB / 367.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.04426, allocations: 8 kB / 367.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002652/0.04692, allocations: 4.396 MB / 372.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.04692, allocations: 0 / 372.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.04805, allocations: 0.6058 MB / 372.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.751e-05/0.04814, allocations: 67.67 kB / 372.9 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.04816, allocations: 4 kB / 372.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.852e-05/0.04826, allocations: 12 kB / 372.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.04832, allocations: 23.89 kB / 373 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.04833, allocations: 8 kB / 373 MB, free: 5.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001606/0.04849, allocations: 263.1 kB / 373.2 MB, free: 5.727 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04849, allocations: 4.031 kB / 373.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004085/0.0489, allocations: 144 kB / 373.4 MB, free: 5.582 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.219e-05/0.04898, allocations: 95.23 kB / 373.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005218/0.04951, allocations: 0.5491 MB / 374 MB, free: 4.895 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.04951, allocations: 0 / 374 MB, free: 4.895 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.04982, allocations: 486.8 kB / 374.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.05012, allocations: 84.22 kB / 374.6 MB, free: 4.297 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.001281/0.0514, allocations: 0.6692 MB / 375.2 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.388e-05/0.05147, allocations: 121.1 kB / 375.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.471e-05/0.05156, allocations: 42.94 kB / 375.4 MB, free: 3.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.0516, allocations: 24.5 kB / 375.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.0516, allocations: 0 / 375.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of Templates: time 0.0107/0.0623, allocations: 10.65 MB / 386.1 MB, free: 8.789 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.4299832498654723]