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.0009351/0.0009351, allocations: 73.97 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.002122/0.002122, 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 1.028/1.028, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.07718/0.07718, allocations: 12.75 MB / 273.8 MB, free: 112 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.563e-06/1.563e-06, allocations: 0 / 347.9 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.722e-05/1.879e-05, allocations: 4.844 kB / 347.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.006245/0.006264, allocations: 2.895 MB / 350.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006602/0.01287, allocations: 2.765 MB / 353.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.01302, allocations: 11.88 kB / 353.6 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.01319, allocations: 51.45 kB / 353.6 MB, free: 11.21 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.004015/0.0172, allocations: 421.7 kB / 354.1 MB, free: 10.8 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.000774/0.01797, allocations: 430.6 kB / 354.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003579/0.01833, allocations: 346.2 kB / 354.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.01846, allocations: 44.84 kB / 354.9 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.01862, allocations: 163.5 kB / 355 MB, free: 9.832 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.01882, allocations: 123.6 kB / 355.1 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.01885, allocations: 16 kB / 355.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.367e-05/0.01891, allocations: 20 kB / 355.2 MB, free: 9.676 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.289e-05/0.01899, allocations: 47.77 kB / 355.2 MB, free: 9.629 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.903e-05/0.01908, allocations: 83.77 kB / 355.3 MB, free: 9.547 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.01936, allocations: 211.2 kB / 355.5 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.01936, allocations: 0 / 355.5 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01936, allocations: 0 / 355.5 MB, free: 9.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.01937, allocations: 4 kB / 355.5 MB, free: 9.336 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.001464/0.02083, allocations: 0.585 MB / 356.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.02086, allocations: 11.98 kB / 356.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.02099, allocations: 44.75 kB / 356.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.02128, allocations: 255.6 kB / 356.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.02129, allocations: 12.38 kB / 356.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.02132, allocations: 20.38 kB / 356.4 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.02144, allocations: 91.55 kB / 356.5 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.02145, allocations: 7.891 kB / 356.5 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.02146, allocations: 7.984 kB / 356.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.02147, allocations: 4 kB / 356.5 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.791e-05/0.02152, allocations: 39.83 kB / 356.6 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005585/0.02208, allocations: 491.4 kB / 357.1 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.02226, allocations: 74.88 kB / 357.1 MB, free: 7.605 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.801e-05/0.02229, allocations: 19.67 kB / 357.2 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.0223, allocations: 4 kB / 357.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.023e-05/0.02232, allocations: 37.39 kB / 357.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.02232, allocations: 0 / 357.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001666/0.02249, allocations: 101.6 kB / 357.3 MB, free: 7.426 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.02252, allocations: 55.41 kB / 357.3 MB, free: 7.359 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.02268, allocations: 292.1 kB / 357.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.02269, allocations: 33.7 kB / 357.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/0.02278, allocations: 207 kB / 357.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.0228, allocations: 43.61 kB / 357.9 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.02284, allocations: 47.3 kB / 358 MB, free: 6.711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.02297, allocations: 0.5079 MB / 358.5 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.077e-05/0.02299, allocations: 11.98 kB / 358.5 MB, free: 6.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.311e-05/0.02304, allocations: 78.08 kB / 358.6 MB, free: 6.078 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.497e-05/0.02312, allocations: 96.86 kB / 358.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.02313, allocations: 0 / 358.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001395/0.02327, allocations: 141.3 kB / 358.8 MB, free: 5.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.02328, allocations: 4 kB / 358.8 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.02328, allocations: 7.984 kB / 358.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.02329, allocations: 8.094 kB / 358.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.02339, allocations: 31.98 kB / 358.8 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.0234, allocations: 4 kB / 358.8 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.0236, allocations: 19.84 kB / 358.9 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.02361, allocations: 8 kB / 358.9 MB, free: 5.734 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.882e-05/0.02369, allocations: 168.5 kB / 359 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.02372, allocations: 27.8 kB / 359.1 MB, free: 5.531 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.02375, allocations: 25.77 kB / 359.1 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.02375, allocations: 4 kB / 359.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.02376, allocations: 0 / 359.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.02376, allocations: 4 kB / 359.1 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.02391, allocations: 153.2 kB / 359.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.02391, allocations: 0 / 359.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.02398, allocations: 31.86 kB / 359.3 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.02398, allocations: 3.938 kB / 359.3 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.02399, allocations: 0 / 359.3 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.02399, allocations: 0 / 359.3 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.02399, allocations: 0 / 359.3 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001709/0.02416, allocations: 247.7 kB / 359.5 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.02421, allocations: 35.78 kB / 359.6 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.02423, allocations: 11.97 kB / 359.6 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.02428, allocations: 0 / 359.6 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.02429, allocations: 7.984 kB / 359.6 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.0243, allocations: 0 / 359.6 MB, free: 4.969 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.295e-05/0.02438, allocations: 201.1 kB / 359.8 MB, free: 4.773 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02438, allocations: 0 / 359.8 MB, free: 4.773 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001912/0.02457, allocations: 51.95 kB / 359.8 MB, free: 4.723 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 7.202e-05/0.02464, allocations: 91.25 kB / 359.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.02475, allocations: 70.64 kB / 360 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.02475, allocations: 0 / 360 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.745e-05/0.02478, allocations: 35.61 kB / 360 MB, free: 4.512 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.02505, allocations: 49.06 kB / 360.1 MB, free: 4.465 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.001056/0.0261, allocations: 449.9 kB / 360.5 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.002e-05/0.02615, allocations: 84.31 kB / 360.6 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.93e-05/0.02622, allocations: 21.62 kB / 360.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.02632, allocations: 114.2 kB / 360.7 MB, free: 3.766 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.02632, allocations: 0 / 360.7 MB, free: 3.766 MB / 282.7 MB Notification: Performance of Templates: time 0.004703/0.03103, allocations: 2.58 MB / 363.3 MB, free: 1.242 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.9073072578758]