Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.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.001093/0.001093, allocations: 80.88 kB / 20.8 MB, free: 3.66 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.001244/0.001244, allocations: 165 kB / 24.22 MB, free: 248 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 1.049/1.049, allocations: 177.2 MB / 204.7 MB, free: 5.445 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.05962/0.05962, allocations: 12.76 MB / 273.9 MB, free: 128 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.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.ExothermicReaction") translateModel(Bodylight.Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.ExothermicReaction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 294.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.574e-05, allocations: 2.312 kB / 294.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003919/0.003944, allocations: 2.932 MB / 297.8 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004483/0.008427, allocations: 2.809 MB / 300.6 MB, free: 8.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.008695, allocations: 12.78 kB / 300.6 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.00891, allocations: 48.75 kB / 300.7 MB, free: 8.16 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.ExothermicReaction.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.ExothermicReaction.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.ExothermicReaction.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001365/0.01028, allocations: 410.1 kB / 301.1 MB, free: 7.934 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.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.01138, allocations: 415.4 kB / 301.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004841/0.01186, allocations: 348 kB / 301.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.01201, allocations: 49.3 kB / 301.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.01219, allocations: 161.9 kB / 302 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.01239, allocations: 116 kB / 302.1 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/0.01242, allocations: 14.75 kB / 302.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.582e-05/0.01251, allocations: 20.14 kB / 302.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.01257, allocations: 56.03 kB / 302.2 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.002e-05/0.01264, allocations: 82.67 kB / 302.3 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.01295, allocations: 219.2 kB / 302.5 MB, free: 7.273 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.01296, allocations: 0 / 302.5 MB, free: 7.273 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.01296, allocations: 0 / 302.5 MB, free: 7.273 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.01296, allocations: 0 / 302.5 MB, free: 7.273 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0005684/0.01353, allocations: 461.5 kB / 303 MB, free: 6.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.01356, allocations: 13.83 kB / 303 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.01373, allocations: 35.66 kB / 303 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.01402, allocations: 245 kB / 303.3 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.01404, allocations: 15.77 kB / 303.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.01407, allocations: 20.17 kB / 303.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.01423, allocations: 103.8 kB / 303.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.01424, allocations: 12.81 kB / 303.4 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.01425, allocations: 5.875 kB / 303.4 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.01425, allocations: 3.062 kB / 303.4 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.86e-05/0.01431, allocations: 40.86 kB / 303.5 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005243/0.01484, allocations: 343.9 kB / 303.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.01494, allocations: 105.1 kB / 303.9 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.67e-05/0.01496, allocations: 26.33 kB / 303.9 MB, free: 6.301 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.01497, allocations: 1.406 kB / 303.9 MB, free: 6.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.01499, allocations: 41.41 kB / 304 MB, free: 6.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.01499, allocations: 3.938 kB / 304 MB, free: 6.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001358/0.01513, allocations: 72.03 kB / 304 MB, free: 6.219 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.01515, allocations: 55.94 kB / 304.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.01528, allocations: 235 kB / 304.3 MB, free: 6.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.825e-06/0.01529, allocations: 25.7 kB / 304.4 MB, free: 5.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.01534, allocations: 154.5 kB / 304.5 MB, free: 5.844 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.01536, allocations: 30.97 kB / 304.5 MB, free: 5.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.0154, allocations: 45.69 kB / 304.6 MB, free: 5.785 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.924e-05/0.01545, allocations: 330.9 kB / 304.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.891e-05/0.01548, allocations: 19.12 kB / 304.9 MB, free: 5.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.277e-05/0.01553, allocations: 59.19 kB / 305 MB, free: 5.402 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.756e-05/0.01562, allocations: 85.12 kB / 305.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01563, allocations: 0 / 305.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001571/0.01578, allocations: 121.6 kB / 305.2 MB, free: 5.281 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.0158, allocations: 10.19 kB / 305.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.01581, allocations: 1.375 kB / 305.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.01582, allocations: 2.75 kB / 305.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.01605, allocations: 46.05 kB / 305.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.01606, allocations: 3.359 kB / 305.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.185e-05/0.01612, allocations: 21.94 kB / 305.3 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.01613, allocations: 4.672 kB / 305.3 MB, free: 5.258 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 6.027e-05/0.01619, allocations: 116 kB / 305.4 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/0.01622, allocations: 18.16 kB / 305.4 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.184e-05/0.01627, allocations: 30.39 kB / 305.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01627, allocations: 1.156 kB / 305.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01627, allocations: 1.594 kB / 305.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01628, allocations: 4.828 kB / 305.4 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.01641, allocations: 122.7 kB / 305.6 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01641, allocations: 0 / 305.6 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.01654, allocations: 34.39 kB / 305.6 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.01655, allocations: 5.312 kB / 305.6 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.01656, allocations: 2.266 kB / 305.6 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.01656, allocations: 0 / 305.6 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01656, allocations: 5.312 kB / 305.6 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.01673, allocations: 233.1 kB / 305.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.01677, allocations: 27 kB / 305.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.01679, allocations: 5.25 kB / 305.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.01684, allocations: 1.859 kB / 305.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.652e-05/0.01686, allocations: 5.734 kB / 305.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.01686, allocations: 1.5 kB / 305.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.283e-05/0.01694, allocations: 80 kB / 306 MB, free: 4.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01694, allocations: 0 / 306 MB, free: 4.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001681/0.0171, allocations: 53.98 kB / 306 MB, free: 4.754 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.372e-05/0.01718, allocations: 81.64 kB / 306.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.01729, allocations: 64.64 kB / 306.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.0173, allocations: 2.188 kB / 306.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.534e-05/0.01732, allocations: 30.12 kB / 306.2 MB, free: 4.645 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.01756, allocations: 57.64 kB / 306.2 MB, free: 4.625 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.0009922/0.01855, allocations: 467.6 kB / 306.7 MB, free: 4.289 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.941e-05/0.01859, allocations: 81.75 kB / 306.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.964e-05/0.01866, allocations: 16.36 kB / 306.8 MB, free: 4.199 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.749e-05/0.01876, allocations: 89.47 kB / 306.9 MB, free: 4.145 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01876, allocations: 4 kB / 306.9 MB, free: 4.141 MB / 266.7 MB Notification: Performance of Templates: time 0.004254/0.02301, allocations: 2.583 MB / 309.5 MB, free: 2.258 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.sim & ./Bodylight_Bodylight.Chemical.Examples.ExothermicReaction -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8749026050791144]