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.0009279/0.0009279, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.00157/0.00157, allocations: 170 kB / 23.27 MB, free: 1.219 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.102/1.102, allocations: 177.2 MB / 203.7 MB, free: 5.48 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.06452/0.06452, allocations: 12.76 MB / 273 MB, free: 100 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.593e-06/1.593e-06, allocations: 0 / 347.3 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.777e-05, allocations: 8.781 kB / 347.3 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.00288/0.002897, allocations: 2.861 MB / 350.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003144/0.006042, allocations: 2.765 MB / 352.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.006167, allocations: 11.88 kB / 352.9 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.006314, allocations: 47.5 kB / 353 MB, free: 11.12 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.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.0007697/0.007083, allocations: 413.8 kB / 353.4 MB, free: 10.71 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.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.0008901/0.007974, allocations: 454.5 kB / 353.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.00827, allocations: 338.3 kB / 354.1 MB, free: 9.938 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.008379, allocations: 28.91 kB / 354.2 MB, free: 9.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.008515, allocations: 155.6 kB / 354.3 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.008724, allocations: 123.6 kB / 354.4 MB, free: 9.637 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.008749, allocations: 16 kB / 354.4 MB, free: 9.621 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.115e-05/0.008801, allocations: 20 kB / 354.5 MB, free: 9.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.448e-05/0.008855, allocations: 55.77 kB / 354.5 MB, free: 9.547 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.871e-05/0.008914, allocations: 75.77 kB / 354.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.009132, allocations: 215.1 kB / 354.8 MB, free: 9.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.009133, allocations: 0 / 354.8 MB, free: 9.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.009134, allocations: 0 / 354.8 MB, free: 9.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.009138, allocations: 0 / 354.8 MB, free: 9.262 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000509/0.009647, allocations: 0.5694 MB / 355.4 MB, free: 8.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.009683, allocations: 11.98 kB / 355.4 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.009802, allocations: 44.75 kB / 355.4 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.01004, allocations: 259.5 kB / 355.7 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.01005, allocations: 16.36 kB / 355.7 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.01007, allocations: 12.38 kB / 355.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.01018, allocations: 90.2 kB / 355.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.01019, allocations: 7.891 kB / 355.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.0102, allocations: 4 kB / 355.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.01021, allocations: 4 kB / 355.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.347e-05/0.01026, allocations: 39.89 kB / 355.9 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005398/0.0108, allocations: 459.7 kB / 356.3 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.0109, allocations: 79.08 kB / 356.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.968e-05/0.01093, allocations: 23.69 kB / 356.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.01095, allocations: 0 / 356.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.01097, allocations: 41.38 kB / 356.4 MB, free: 7.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 8.72e-07/0.01097, allocations: 0 / 356.4 MB, free: 7.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001726/0.01114, allocations: 105.4 kB / 356.5 MB, free: 7.391 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.01117, allocations: 55.39 kB / 356.6 MB, free: 7.324 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.01133, allocations: 288.2 kB / 356.9 MB, free: 7.023 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.01135, allocations: 29.7 kB / 356.9 MB, free: 6.988 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.054e-05/0.01144, allocations: 211 kB / 357.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.01146, allocations: 47.59 kB / 357.2 MB, free: 6.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.506e-05/0.01151, allocations: 47.34 kB / 357.2 MB, free: 6.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.01163, allocations: 0.5079 MB / 357.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.555e-05/0.01166, allocations: 19.98 kB / 357.7 MB, free: 6.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.302e-05/0.01171, allocations: 74.08 kB / 357.8 MB, free: 6.039 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.772e-05/0.0118, allocations: 105.2 kB / 357.9 MB, free: 5.914 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.0118, allocations: 4 kB / 357.9 MB, free: 5.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001371/0.01194, allocations: 145.3 kB / 358.1 MB, free: 5.762 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.01195, allocations: 7.938 kB / 358.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.01195, allocations: 0 / 358.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.01196, allocations: 4 kB / 358.1 MB, free: 5.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.01207, allocations: 39.92 kB / 358.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.026e-06/0.01207, allocations: 0 / 358.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.95e-05/0.01213, allocations: 23.84 kB / 358.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.01214, allocations: 4.156 kB / 358.1 MB, free: 5.684 MB / 282.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 7.777e-05/0.01222, allocations: 180.4 kB / 358.3 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.01224, allocations: 23.86 kB / 358.3 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.01228, allocations: 21.78 kB / 358.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.01228, allocations: 4 kB / 358.4 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.01228, allocations: 3.984 kB / 358.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.01228, allocations: 0 / 358.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.01242, allocations: 153.2 kB / 358.5 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.01242, allocations: 0 / 358.5 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.421e-05/0.01249, allocations: 23.94 kB / 358.5 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.01249, allocations: 11.92 kB / 358.5 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.0125, allocations: 4 kB / 358.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.0125, allocations: 0 / 358.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.0125, allocations: 0 / 358.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.01268, allocations: 263.7 kB / 358.8 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.054e-05/0.01273, allocations: 39.72 kB / 358.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.01274, allocations: 0 / 358.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.51e-05/0.0128, allocations: 7.984 kB / 358.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.01281, allocations: 4 kB / 358.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.01282, allocations: 3.984 kB / 358.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.113e-05/0.0129, allocations: 197.1 kB / 359.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0129, allocations: 4.031 kB / 359.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001808/0.01308, allocations: 47.95 kB / 359.1 MB, free: 4.656 MB / 282.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 7.087e-05/0.01315, allocations: 91.19 kB / 359.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.01326, allocations: 83.5 kB / 359.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.01326, allocations: 0 / 359.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.204e-05/0.01329, allocations: 36.09 kB / 359.3 MB, free: 4.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.01354, allocations: 59.75 kB / 359.4 MB, free: 4.375 MB / 282.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.0009731/0.01452, allocations: 446 kB / 359.8 MB, free: 3.914 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.774e-05/0.01456, allocations: 84.31 kB / 359.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.665e-05/0.01462, allocations: 21.95 kB / 359.9 MB, free: 3.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.01473, allocations: 118.2 kB / 360 MB, free: 3.672 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01473, allocations: 0 / 360 MB, free: 3.672 MB / 282.7 MB Notification: Performance of Templates: time 0.004259/0.01899, allocations: 2.597 MB / 362.6 MB, free: 1.141 MB / 282.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9140602480620146]