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.0009804/0.0009804, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001049/0.001049, allocations: 173 kB / 23.03 MB, free: 1.543 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.9999/0.9999, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.07058/0.07058, allocations: 12.76 MB / 272.7 MB, free: 280 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.243e-06/1.243e-06, allocations: 3.938 kB / 346.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.464e-05/1.588e-05, allocations: 4.562 kB / 346.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.002489/0.002505, allocations: 2.93 MB / 349.6 MB, free: 14.3 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003047/0.005552, allocations: 2.851 MB / 352.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.005693, allocations: 11.88 kB / 352.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.005847, allocations: 43.58 kB / 352.5 MB, free: 11.39 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.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.0008736/0.006721, allocations: 429.6 kB / 352.9 MB, free: 10.96 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.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.0005614/0.007282, allocations: 430.6 kB / 353.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002847/0.007567, allocations: 350.2 kB / 353.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.007684, allocations: 36.86 kB / 353.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.007822, allocations: 175.5 kB / 353.9 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.007997, allocations: 115.7 kB / 354 MB, free: 9.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.008021, allocations: 12 kB / 354 MB, free: 9.867 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.581e-05/0.008077, allocations: 20 kB / 354 MB, free: 9.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.836e-05/0.008135, allocations: 51.77 kB / 354.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.317e-05/0.008208, allocations: 83.77 kB / 354.2 MB, free: 9.715 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.008488, allocations: 219.1 kB / 354.4 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.00849, allocations: 0 / 354.4 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.008491, allocations: 0 / 354.4 MB, free: 9.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.008496, allocations: 0 / 354.4 MB, free: 9.5 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.00056/0.009056, allocations: 0.5772 MB / 355 MB, free: 8.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.009087, allocations: 11.98 kB / 355 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.009214, allocations: 52.73 kB / 355 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.009477, allocations: 251.6 kB / 355.3 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.00949, allocations: 12.38 kB / 355.3 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.009521, allocations: 20.38 kB / 355.3 MB, free: 8.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.00966, allocations: 107.5 kB / 355.4 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.009673, allocations: 7.891 kB / 355.4 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.009685, allocations: 4 kB / 355.4 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.009693, allocations: 4 kB / 355.4 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.198e-05/0.009775, allocations: 55.81 kB / 355.5 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.01038, allocations: 0.5067 MB / 356 MB, free: 7.797 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.0105, allocations: 82.94 kB / 356.1 MB, free: 7.703 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.911e-05/0.01054, allocations: 27.69 kB / 356.1 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.01055, allocations: 0 / 356.1 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.01057, allocations: 37.39 kB / 356.1 MB, free: 7.625 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 9.32e-07/0.01057, allocations: 0 / 356.1 MB, free: 7.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001897/0.01076, allocations: 101.6 kB / 356.2 MB, free: 7.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.01079, allocations: 59.41 kB / 356.3 MB, free: 7.449 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.01097, allocations: 300.2 kB / 356.6 MB, free: 7.137 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.01098, allocations: 29.64 kB / 356.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.01107, allocations: 207 kB / 356.8 MB, free: 6.895 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.01109, allocations: 51.62 kB / 356.9 MB, free: 6.844 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.01114, allocations: 43.36 kB / 356.9 MB, free: 6.793 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.01126, allocations: 0.4962 MB / 357.4 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.464e-05/0.01129, allocations: 19.98 kB / 357.4 MB, free: 6.266 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-05/0.01135, allocations: 82.03 kB / 357.5 MB, free: 6.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.83e-05/0.01145, allocations: 108.9 kB / 357.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01145, allocations: 0 / 357.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001477/0.0116, allocations: 149.3 kB / 357.8 MB, free: 5.879 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.01161, allocations: 8 kB / 357.8 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.01161, allocations: 0 / 357.8 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.01163, allocations: 4 kB / 357.8 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.01173, allocations: 35.92 kB / 357.8 MB, free: 5.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01174, allocations: 4 kB / 357.8 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.772e-05/0.0118, allocations: 23.84 kB / 357.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.0118, allocations: 4 kB / 357.8 MB, free: 5.801 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 (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 7.685e-05/0.01188, allocations: 176.6 kB / 358 MB, free: 5.617 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.01191, allocations: 23.86 kB / 358 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.15e-05/0.01195, allocations: 25.77 kB / 358.1 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.01195, allocations: 0 / 358.1 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.01195, allocations: 4 kB / 358.1 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.01196, allocations: 0 / 358.1 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000144/0.0121, allocations: 196.5 kB / 358.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.0121, allocations: 0 / 358.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.938e-05/0.01216, allocations: 19.98 kB / 358.3 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.01216, allocations: 0 / 358.3 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.01218, allocations: 4 kB / 358.3 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.01218, allocations: 4 kB / 358.3 MB, free: 5.309 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.01218, allocations: 3.938 kB / 358.3 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.01237, allocations: 267.6 kB / 358.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.01241, allocations: 31.78 kB / 358.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.01243, allocations: 0 / 358.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.219e-05/0.01248, allocations: 15.92 kB / 358.6 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.46e-05/0.01249, allocations: 0 / 358.6 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.0125, allocations: 4 kB / 358.6 MB, free: 4.973 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.527e-05/0.01259, allocations: 205.1 kB / 358.8 MB, free: 4.773 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01259, allocations: 4.031 kB / 358.8 MB, free: 4.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.01279, allocations: 51.95 kB / 358.9 MB, free: 4.719 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 (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 8.105e-05/0.01287, allocations: 91.25 kB / 358.9 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.013, allocations: 71.53 kB / 359 MB, free: 4.543 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.013, allocations: 0 / 359 MB, free: 4.543 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.178e-05/0.01303, allocations: 35.61 kB / 359 MB, free: 4.504 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.01328, allocations: 59.66 kB / 359.1 MB, free: 4.449 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.001049/0.01433, allocations: 449.8 kB / 359.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.532e-05/0.01438, allocations: 84.31 kB / 359.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.01443, allocations: 13.64 kB / 359.6 MB, free: 3.871 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.01446, allocations: 24.5 kB / 359.7 MB, free: 3.848 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01446, allocations: 0 / 359.7 MB, free: 3.848 MB / 282.7 MB Notification: Performance of Templates: time 0.00371/0.01817, allocations: 2.462 MB / 362.1 MB, free: 1.434 MB / 282.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.8919302937574685]