Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.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.0008506/0.0008506, allocations: 73.09 kB / 20.65 MB, free: 3.848 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.0009128/0.0009128, allocations: 169 kB / 24.06 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.9331/0.9331, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.07831/0.07831, allocations: 12.77 MB / 273.8 MB, free: 120 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.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 347.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.461e-05, allocations: 2.312 kB / 347.2 MB, free: 2.711 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.002646/0.002661, allocations: 2.861 MB / 350.1 MB, free: 15.83 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002882/0.005543, allocations: 2.773 MB / 352.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.005664, allocations: 19.81 kB / 352.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.005807, allocations: 39.58 kB / 352.9 MB, free: 12.99 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.SimpleReaction_NormalInit.A.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.SimpleReaction_NormalInit.A.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.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.SteadyStates.Examples.SimpleReaction_NormalInit.B.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.SimpleReaction_NormalInit.B.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0007474/0.006554, allocations: 409.7 kB / 353.3 MB, free: 12.59 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.SimpleReaction_NormalInit.A.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.SimpleReaction_NormalInit.A.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.SteadyStates.Examples.SimpleReaction_NormalInit.B.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.SimpleReaction_NormalInit.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0005327/0.007087, allocations: 450.5 kB / 353.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002611/0.007348, allocations: 334.3 kB / 354.1 MB, free: 11.82 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.98e-05/0.007448, allocations: 36.91 kB / 354.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.007572, allocations: 151.6 kB / 354.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.007766, allocations: 123.7 kB / 354.4 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.00779, allocations: 12 kB / 354.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.102e-05/0.007841, allocations: 24 kB / 354.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.00789, allocations: 55.75 kB / 354.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.466e-05/0.007945, allocations: 75.78 kB / 354.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.008189, allocations: 211.1 kB / 354.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.008191, allocations: 0 / 354.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.008192, allocations: 0 / 354.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.008195, allocations: 0 / 354.8 MB, free: 11.14 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004681/0.008663, allocations: 0.5772 MB / 355.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.008692, allocations: 11.98 kB / 355.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.008798, allocations: 44.75 kB / 355.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.009026, allocations: 259.5 kB / 355.7 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.009036, allocations: 8.375 kB / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.009058, allocations: 16.38 kB / 355.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.009163, allocations: 90.12 kB / 355.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.009172, allocations: 3.938 kB / 355.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.009183, allocations: 8 kB / 355.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.009188, allocations: 4 kB / 355.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.027e-05/0.009239, allocations: 35.95 kB / 355.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.009722, allocations: 451.8 kB / 356.3 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.612e-05/0.009819, allocations: 78.92 kB / 356.3 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.798e-05/0.009847, allocations: 27.67 kB / 356.4 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.009859, allocations: 4 kB / 356.4 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.009877, allocations: 37.38 kB / 356.4 MB, free: 9.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 9.82e-07/0.009878, allocations: 4 kB / 356.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001562/0.01003, allocations: 109.5 kB / 356.5 MB, free: 9.266 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.01006, allocations: 59.39 kB / 356.6 MB, free: 9.195 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.0102, allocations: 296.1 kB / 356.9 MB, free: 8.891 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.01022, allocations: 29.7 kB / 356.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.058e-05/0.0103, allocations: 203 kB / 357.1 MB, free: 8.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.01032, allocations: 39.62 kB / 357.1 MB, free: 8.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.01037, allocations: 55.3 kB / 357.2 MB, free: 8.551 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.01048, allocations: 0.504 MB / 357.7 MB, free: 8.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.388e-05/0.01051, allocations: 15.98 kB / 357.7 MB, free: 8.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.917e-05/0.01056, allocations: 78.08 kB / 357.8 MB, free: 7.918 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.065e-05/0.01064, allocations: 104.9 kB / 357.9 MB, free: 7.793 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.01064, allocations: 7.938 kB / 357.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001265/0.01076, allocations: 133.4 kB / 358 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.01078, allocations: 8 kB / 358 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01078, allocations: 8.094 kB / 358 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.01079, allocations: 4 kB / 358 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.926e-05/0.01089, allocations: 35.98 kB / 358.1 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.01089, allocations: 7.938 kB / 358.1 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.325e-05/0.01095, allocations: 11.89 kB / 358.1 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.01095, allocations: 12 kB / 358.1 MB, free: 7.562 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (21): * Single equations (assignments): 21 * 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 6.997e-05/0.01102, allocations: 168.4 kB / 358.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.01105, allocations: 23.86 kB / 358.3 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.01108, allocations: 25.78 kB / 358.3 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.01109, allocations: 3.984 kB / 358.3 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01109, allocations: 4 kB / 358.3 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-06/0.01109, allocations: 0 / 358.3 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.01122, allocations: 165.1 kB / 358.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.01123, allocations: 0 / 358.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.277e-05/0.01129, allocations: 31.86 kB / 358.5 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.01129, allocations: 0 / 358.5 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.0113, allocations: 0 / 358.5 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.0113, allocations: 0 / 358.5 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.0113, allocations: 4 kB / 358.5 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.01146, allocations: 258.6 kB / 358.8 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.055e-05/0.0115, allocations: 35.81 kB / 358.8 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.01152, allocations: 0 / 358.8 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.615e-05/0.01157, allocations: 15.92 kB / 358.8 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.01159, allocations: 3.938 kB / 358.8 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.01159, allocations: 7.984 kB / 358.8 MB, free: 6.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.809e-05/0.01167, allocations: 197.1 kB / 359 MB, free: 6.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01167, allocations: 0 / 359 MB, free: 6.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001765/0.01184, allocations: 47.95 kB / 359.1 MB, free: 6.535 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.state,B.state) * 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 (11): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.66e-05/0.0119, allocations: 95.25 kB / 359.2 MB, free: 6.434 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.01e-05/0.01199, allocations: 67.58 kB / 359.2 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.01199, allocations: 0 / 359.2 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.866e-05/0.01202, allocations: 43.59 kB / 359.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.01226, allocations: 45.17 kB / 359.3 MB, free: 6.273 MB / 330.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.0009263/0.01319, allocations: 476.1 kB / 359.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.478e-05/0.01327, allocations: 146.1 kB / 359.9 MB, free: 5.609 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.01338, allocations: 118.2 kB / 360 MB, free: 5.492 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01338, allocations: 0 / 360 MB, free: 5.492 MB / 330.7 MB Notification: Performance of Templates: time 0.002649/0.01603, allocations: 2.689 MB / 362.7 MB, free: 2.82 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.sim & ./Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.67121039936319]