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.0009209/0.0009209, allocations: 81.92 kB / 19.87 MB, free: 4.621 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.001011/0.001011, allocations: 173.7 kB / 23.28 MB, free: 1.223 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.009/1.009, allocations: 177.1 MB / 203.7 MB, free: 5.527 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.06062/0.06062, allocations: 12.76 MB / 273 MB, free: 148 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.103e-06/1.103e-06, allocations: 0 / 347.2 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129e-05/1.239e-05, allocations: 8.359 kB / 347.2 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.MichaelisMenten): time 0.003003/0.003015, allocations: 3.321 MB / 350.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.006501, allocations: 2.875 MB / 353.4 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.006711, allocations: 15.81 kB / 353.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.006872, allocations: 75.23 kB / 353.5 MB, free: 10.64 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.0009202/0.007793, allocations: 469.3 kB / 353.9 MB, free: 10.18 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.0007164/0.008509, allocations: 474.6 kB / 354.4 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000407/0.008916, allocations: 0.5013 MB / 354.9 MB, free: 9.207 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.009044, allocations: 65.12 kB / 354.9 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.009259, allocations: 247.3 kB / 355.2 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.009492, allocations: 203.4 kB / 355.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.009529, allocations: 28 kB / 355.4 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.255e-05/0.009591, allocations: 24 kB / 355.4 MB, free: 8.648 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.138e-05/0.009672, allocations: 95.64 kB / 355.5 MB, free: 8.555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.595e-05/0.009768, allocations: 127.6 kB / 355.6 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.01005, allocations: 330.8 kB / 356 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.01005, allocations: 0 / 356 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.01005, allocations: 0 / 356 MB, free: 8.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.01006, allocations: 0 / 356 MB, free: 8.105 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.0007766/0.01083, allocations: 0.7174 MB / 356.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.01087, allocations: 15.98 kB / 356.7 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.01104, allocations: 72.66 kB / 356.8 MB, free: 7.266 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.01139, allocations: 337.3 kB / 357.1 MB, free: 6.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.0114, allocations: 12.88 kB / 357.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.01143, allocations: 24.38 kB / 357.1 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.01163, allocations: 176.9 kB / 357.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.01164, allocations: 3.938 kB / 357.3 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.01165, allocations: 4 kB / 357.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.01166, allocations: 8 kB / 357.3 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.663e-05/0.01174, allocations: 59.44 kB / 357.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007984/0.01254, allocations: 0.6073 MB / 358 MB, free: 5.969 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.01273, allocations: 130.2 kB / 358.1 MB, free: 5.816 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.902e-05/0.01278, allocations: 49.03 kB / 358.2 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.01279, allocations: 0 / 358.2 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.01281, allocations: 41.39 kB / 358.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.002e-06/0.01281, allocations: 3.938 kB / 358.2 MB, free: 5.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.001951/0.01476, allocations: 0.6711 MB / 358.9 MB, free: 5.023 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.01479, allocations: 81.11 kB / 359 MB, free: 4.926 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003424/0.01513, allocations: 390.4 kB / 359.3 MB, free: 4.527 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.01515, allocations: 29.7 kB / 359.4 MB, free: 4.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.01526, allocations: 255.3 kB / 359.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.203e-05/0.01531, allocations: 95.2 kB / 359.7 MB, free: 4.145 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.01539, allocations: 71.31 kB / 359.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.01551, allocations: 0.5234 MB / 360.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.006e-05/0.01556, allocations: 27.98 kB / 360.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.01566, allocations: 153.2 kB / 360.5 MB, free: 3.309 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.01585, allocations: 207.8 kB / 360.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.01585, allocations: 0 / 360.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001074/0.01693, allocations: 442.2 kB / 361.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.01694, allocations: 11.98 kB / 361.1 MB, free: 2.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01695, allocations: 4 kB / 361.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.01833, allocations: 358.9 kB / 361.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.437e-05/0.01841, allocations: 39.92 kB / 361.5 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.02153, allocations: 4.603 MB / 366.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.02165, allocations: 15.98 kB / 366.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.02166, allocations: 8 kB / 366.2 MB, free: 13.36 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.0001012/0.02177, allocations: 180.5 kB / 366.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.02182, allocations: 51.66 kB / 366.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.597e-05/0.02186, allocations: 47.61 kB / 366.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.02187, allocations: 4 kB / 366.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.02187, allocations: 4 kB / 366.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.02188, allocations: 7.922 kB / 366.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.02312, allocations: 0.6997 MB / 367.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.02312, allocations: 3.984 kB / 367.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.02317, allocations: 23.98 kB / 367.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.02437, allocations: 334.8 kB / 367.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.02438, allocations: 4 kB / 367.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002856/0.02724, allocations: 4.297 MB / 371.8 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.02724, allocations: 4 kB / 371.8 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.02826, allocations: 0.5551 MB / 372.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.981e-05/0.02834, allocations: 63.62 kB / 372.4 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.02837, allocations: 4 kB / 372.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-05/0.02846, allocations: 8 kB / 372.4 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.0285, allocations: 23.95 kB / 372.5 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.02851, allocations: 7.938 kB / 372.5 MB, free: 6.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001227/0.02863, allocations: 255 kB / 372.7 MB, free: 6.469 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02863, allocations: 32 / 372.7 MB, free: 6.469 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003954/0.02903, allocations: 148 kB / 372.9 MB, free: 6.324 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.132e-05/0.02911, allocations: 95.19 kB / 372.9 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004854/0.02959, allocations: 0.5264 MB / 373.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.0296, allocations: 4.062 kB / 373.5 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.02989, allocations: 474.8 kB / 373.9 MB, free: 5.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.0302, allocations: 76.72 kB / 374 MB, free: 5.082 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.001223/0.03142, allocations: 0.684 MB / 374.7 MB, free: 4.363 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.119e-05/0.03149, allocations: 121.1 kB / 374.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.04e-05/0.03156, allocations: 30.97 kB / 374.8 MB, free: 4.195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.03168, allocations: 126.2 kB / 375 MB, free: 4.07 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.03168, allocations: 0 / 375 MB, free: 4.07 MB / 298.7 MB Notification: Performance of Templates: time 0.01188/0.04355, allocations: 10.73 MB / 385.7 MB, free: 9.41 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.1584404692985117]