Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.SimpleReaction.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.001058/0.001058, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.001117/0.001117, allocations: 181 kB / 23.36 MB, free: 1.133 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.042/1.042, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.06874/0.06874, allocations: 12.75 MB / 273 MB, free: 156 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.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") translateModel(Bodylight.Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 293.9 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.842e-05, allocations: 2.312 kB / 293.9 MB, free: 12 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.003261/0.003289, allocations: 2.711 MB / 296.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004432/0.007721, allocations: 2.79 MB / 299.4 MB, free: 8.426 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.007886, allocations: 13 kB / 299.4 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.008068, allocations: 37.02 kB / 299.5 MB, free: 8.395 MB / 266.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.SimpleReaction.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.Chemical.Examples.SimpleReaction.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001175/0.009243, allocations: 387.8 kB / 299.8 MB, free: 8.184 MB / 266.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.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0008267/0.01007, allocations: 411.2 kB / 300.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.01044, allocations: 295.7 kB / 300.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.01056, allocations: 28.36 kB / 300.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.01077, allocations: 142 kB / 300.7 MB, free: 7.762 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.01099, allocations: 99.73 kB / 300.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.01102, allocations: 12.19 kB / 300.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.771e-05/0.0111, allocations: 16.16 kB / 300.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.212e-05/0.01116, allocations: 45.03 kB / 300.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.837e-05/0.01124, allocations: 71.31 kB / 300.9 MB, free: 7.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.01151, allocations: 185.5 kB / 301.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.01151, allocations: 1.344 kB / 301.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01151, allocations: 0 / 301.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.01152, allocations: 0 / 301.1 MB, free: 7.598 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005713/0.01209, allocations: 428.2 kB / 301.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.01213, allocations: 14.06 kB / 301.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.01227, allocations: 35.27 kB / 301.6 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.01254, allocations: 223.1 kB / 301.8 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.01256, allocations: 13.81 kB / 301.8 MB, free: 7.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.01259, allocations: 12.62 kB / 301.8 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.01274, allocations: 83.75 kB / 301.9 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.01275, allocations: 4.781 kB / 301.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.01276, allocations: 5.375 kB / 301.9 MB, free: 7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.01277, allocations: 2.75 kB / 301.9 MB, free: 7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.609e-05/0.01283, allocations: 30.09 kB / 302 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.01333, allocations: 297.1 kB / 302.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.01344, allocations: 109.9 kB / 302.4 MB, free: 6.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.258e-05/0.01347, allocations: 21.36 kB / 302.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.01348, allocations: 1.375 kB / 302.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.0135, allocations: 32.59 kB / 302.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.01351, allocations: 5.375 kB / 302.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001671/0.01367, allocations: 76.59 kB / 302.5 MB, free: 6.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.016e-05/0.01369, allocations: 52.78 kB / 302.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.01383, allocations: 230.7 kB / 302.8 MB, free: 6.402 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.01385, allocations: 31.73 kB / 302.8 MB, free: 6.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.0139, allocations: 134.5 kB / 302.9 MB, free: 6.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.01392, allocations: 40.7 kB / 303 MB, free: 6.219 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.01396, allocations: 36.75 kB / 303 MB, free: 6.191 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.963e-05/0.01401, allocations: 335.2 kB / 303.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.444e-05/0.01404, allocations: 15.23 kB / 303.3 MB, free: 5.863 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.622e-05/0.01409, allocations: 60.45 kB / 303.4 MB, free: 5.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.01417, allocations: 90.42 kB / 303.5 MB, free: 5.738 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.01417, allocations: 1.375 kB / 303.5 MB, free: 5.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001283/0.0143, allocations: 114.8 kB / 303.6 MB, free: 5.684 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.01431, allocations: 7.938 kB / 303.6 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01432, allocations: 6.5 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.01434, allocations: 2.906 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.01455, allocations: 50.2 kB / 303.7 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.01455, allocations: 6.562 kB / 303.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.01462, allocations: 25.62 kB / 303.7 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.01463, allocations: 5.641 kB / 303.7 MB, free: 5.652 MB / 266.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 (20): * Single equations (assignments): 20 * 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 5.362e-05/0.01468, allocations: 119.4 kB / 303.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.01471, allocations: 14.88 kB / 303.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.01474, allocations: 27 kB / 303.9 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01475, allocations: 5.375 kB / 303.9 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.01475, allocations: 3.938 kB / 303.9 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.01475, allocations: 3.984 kB / 303.9 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.01487, allocations: 112.1 kB / 304 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.01488, allocations: 1.25 kB / 304 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.01498, allocations: 28.47 kB / 304 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01498, allocations: 1.312 kB / 304 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.01499, allocations: 1.406 kB / 304 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01499, allocations: 0 / 304 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01499, allocations: 0 / 304 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.01515, allocations: 242.4 kB / 304.3 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.01519, allocations: 24.03 kB / 304.3 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.01521, allocations: 5.438 kB / 304.3 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.011e-05/0.01526, allocations: 5.125 kB / 304.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.694e-05/0.01528, allocations: 5.297 kB / 304.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.01528, allocations: 2.531 kB / 304.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.657e-05/0.01535, allocations: 80.89 kB / 304.4 MB, free: 5.164 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01535, allocations: 5.031 kB / 304.4 MB, free: 5.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001736/0.01552, allocations: 44.42 kB / 304.4 MB, free: 5.152 MB / 266.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 (10): * Single equations (assignments): 10 * 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.115e-05/0.01559, allocations: 79.45 kB / 304.5 MB, free: 5.078 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001079/0.0157, allocations: 52.16 kB / 304.6 MB, free: 5.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.01571, allocations: 2.625 kB / 304.6 MB, free: 5.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.966e-05/0.01573, allocations: 34.3 kB / 304.6 MB, free: 5.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.01596, allocations: 43.84 kB / 304.6 MB, free: 5.031 MB / 266.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.001008/0.01697, allocations: 435.5 kB / 305.1 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.15e-05/0.01702, allocations: 78.09 kB / 305.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.397e-05/0.01709, allocations: 17.11 kB / 305.2 MB, free: 4.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.0172, allocations: 83.89 kB / 305.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.0172, allocations: 3.938 kB / 305.2 MB, free: 4.629 MB / 266.7 MB Notification: Performance of Templates: time 0.004606/0.02181, allocations: 2.413 MB / 307.6 MB, free: 3.215 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.SimpleReaction.sim & ./Bodylight_Bodylight.Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9051428460516036]