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.001348/0.001348, allocations: 88.52 kB / 19.94 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.001524/0.001524, 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.9245/0.9245, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.05491/0.05491, allocations: 12.74 MB / 272.7 MB, free: 500 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.102e-06/1.102e-06, allocations: 0 / 403.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.978e-05, allocations: 2.281 kB / 403.1 MB, free: 8.879 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.MichaelisMenten): time 0.002817/0.002837, allocations: 3.11 MB / 406.2 MB, free: 5.754 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003148/0.005985, allocations: 2.863 MB / 409.1 MB, free: 2.875 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.006144, allocations: 19.81 kB / 409.1 MB, free: 2.855 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.006316, allocations: 75.23 kB / 409.2 MB, free: 2.781 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.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.0008775/0.007193, allocations: 461.4 kB / 409.6 MB, free: 2.328 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.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.0006239/0.007817, allocations: 484.9 kB / 410.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000398/0.008215, allocations: 0.5014 MB / 410.6 MB, free: 1.352 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.008363, allocations: 57.23 kB / 410.6 MB, free: 1.289 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.008552, allocations: 247.3 kB / 410.9 MB, free: 1.047 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.008777, allocations: 191.4 kB / 411.1 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.008814, allocations: 28 kB / 411.1 MB, free: 0.832 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.384e-05/0.008888, allocations: 27.94 kB / 411.1 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.744e-05/0.008975, allocations: 95.64 kB / 411.2 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.435e-05/0.009069, allocations: 123.6 kB / 411.3 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.009414, allocations: 422.6 kB / 411.8 MB, free: 180 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.009417, allocations: 0 / 411.8 MB, free: 180 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.009419, allocations: 4 kB / 411.8 MB, free: 176 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.009424, allocations: 0 / 411.8 MB, free: 176 kB / 330.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.1307/0.1401, allocations: 0.6178 MB / 412.4 MB, free: 22.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1402, allocations: 14.05 kB / 412.4 MB, free: 22.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.1403, allocations: 61.11 kB / 412.4 MB, free: 22.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.1407, allocations: 329.4 kB / 412.8 MB, free: 22.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1407, allocations: 19.03 kB / 412.8 MB, free: 22.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1407, allocations: 22.73 kB / 412.8 MB, free: 22.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.141, allocations: 240.7 kB / 413 MB, free: 21.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.141, allocations: 3.094 kB / 413 MB, free: 21.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.141, allocations: 12.97 kB / 413.1 MB, free: 21.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.141, allocations: 7.188 kB / 413.1 MB, free: 21.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.1412, allocations: 163.5 kB / 413.2 MB, free: 21.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009352/0.1422, allocations: 0.7015 MB / 413.9 MB, free: 21.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.1425, allocations: 228.8 kB / 414.2 MB, free: 21.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.585e-05/0.1426, allocations: 93.45 kB / 414.2 MB, free: 21.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.1426, allocations: 2.594 kB / 414.2 MB, free: 21.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.24e-05/0.1426, allocations: 41.78 kB / 414.3 MB, free: 21.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.1426, allocations: 0 / 414.3 MB, free: 21.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.002637/0.1452, allocations: 1.27 MB / 415.6 MB, free: 20.9 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.1453, allocations: 81.08 kB / 415.6 MB, free: 20.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.1455, allocations: 380.7 kB / 416 MB, free: 20.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1455, allocations: 30.55 kB / 416 MB, free: 20.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.463e-05/0.1456, allocations: 206.3 kB / 416.2 MB, free: 20.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.1457, allocations: 86.11 kB / 416.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.1457, allocations: 64.78 kB / 416.4 MB, free: 20.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.349e-05/0.1458, allocations: 347.4 kB / 416.7 MB, free: 19.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.1459, allocations: 134 kB / 416.9 MB, free: 19.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.1461, allocations: 221.9 kB / 417.1 MB, free: 19.79 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.1464, allocations: 370.2 kB / 417.4 MB, free: 19.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1464, allocations: 5.344 kB / 417.4 MB, free: 19.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001286/0.1477, allocations: 0.7252 MB / 418.2 MB, free: 19.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1477, allocations: 8.812 kB / 418.2 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1477, allocations: 7.156 kB / 418.2 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.149, allocations: 435.6 kB / 418.6 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.166e-05/0.149, allocations: 42.8 kB / 418.6 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/0.1524, allocations: 4.679 MB / 423.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.1525, allocations: 14.95 kB / 423.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.1525, allocations: 13.16 kB / 423.4 MB, free: 15.82 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 (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.0001076/0.1527, allocations: 164.5 kB / 423.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.1527, allocations: 44.89 kB / 423.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.1527, allocations: 54.3 kB / 423.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1527, allocations: 2.812 kB / 423.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1528, allocations: 3.547 kB / 423.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1528, allocations: 1.125 kB / 423.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.1544, allocations: 1.072 MB / 424.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1544, allocations: 1.219 kB / 424.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.606e-05/0.1545, allocations: 19.61 kB / 424.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.1557, allocations: 424.7 kB / 425.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.1557, allocations: 6.047 kB / 425.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002975/0.1587, allocations: 4.421 MB / 429.6 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1587, allocations: 0 / 429.6 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.1601, allocations: 0.9404 MB / 430.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.565e-05/0.1602, allocations: 68 kB / 430.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.1602, allocations: 5.5 kB / 430.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.1603, allocations: 9.656 kB / 430.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.266e-05/0.1604, allocations: 20.8 kB / 430.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.1604, allocations: 9.406 kB / 430.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001852/0.1606, allocations: 260 kB / 430.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1606, allocations: 0 / 430.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004245/0.161, allocations: 143.9 kB / 431 MB, free: 11.2 MB / 330.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.551e-05/0.1611, allocations: 104 kB / 431.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.1617, allocations: 0.6059 MB / 431.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1617, allocations: 2.484 kB / 431.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.162, allocations: 437.2 kB / 432.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.1623, allocations: 76.77 kB / 432.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007838/0.1631, allocations: 0.7017 MB / 432.9 MB, free: 9.898 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.1633, allocations: 214.1 kB / 433.1 MB, free: 9.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.206e-05/0.1633, allocations: 25.19 kB / 433.1 MB, free: 9.742 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1633, allocations: 0 / 433.1 MB, free: 9.742 MB / 330.7 MB Notification: Performance of Templates: time 0.00599/0.1693, allocations: 7.756 MB / 440.9 MB, free: 5.066 MB / 330.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 > Bodylight_Bodylight.Chemical.Examples.MichaelisMenten.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.2624060129746795]