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.001078/0.001078, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001069/0.001069, allocations: 169 kB / 23.27 MB, free: 1.223 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.954/0.954, allocations: 177.1 MB / 203.7 MB, free: 5.523 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.05672/0.05672, allocations: 12.77 MB / 273 MB, free: 132 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.763e-06/1.763e-06, allocations: 0 / 347.1 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.567e-05, allocations: 4.844 kB / 347.1 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.004174/0.0042, allocations: 2.899 MB / 350 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.008095, allocations: 2.761 MB / 352.8 MB, free: 11.28 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.00822, allocations: 11.88 kB / 352.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.008363, allocations: 47.52 kB / 352.9 MB, free: 11.22 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.00102/0.009384, allocations: 421.7 kB / 353.3 MB, free: 10.81 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.0007867/0.01017, allocations: 442.5 kB / 353.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.01055, allocations: 342.2 kB / 354 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.01069, allocations: 44.84 kB / 354.1 MB, free: 9.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.01089, allocations: 167.5 kB / 354.2 MB, free: 9.832 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.0111, allocations: 119.6 kB / 354.4 MB, free: 9.715 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.01113, allocations: 16 kB / 354.4 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.809e-05/0.0112, allocations: 16 kB / 354.4 MB, free: 9.684 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.824e-05/0.01127, allocations: 51.77 kB / 354.4 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.01134, allocations: 83.77 kB / 354.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.01165, allocations: 215.2 kB / 354.7 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.01165, allocations: 0 / 354.7 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01165, allocations: 0 / 354.7 MB, free: 9.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.01166, allocations: 0 / 354.7 MB, free: 9.34 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.000677/0.01233, allocations: 0.5772 MB / 355.3 MB, free: 8.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.01238, allocations: 15.98 kB / 355.3 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.01255, allocations: 48.69 kB / 355.4 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.01292, allocations: 251.6 kB / 355.6 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.01293, allocations: 16.31 kB / 355.6 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.01296, allocations: 16.38 kB / 355.7 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.01311, allocations: 99.55 kB / 355.8 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.01313, allocations: 7.891 kB / 355.8 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.01314, allocations: 11.97 kB / 355.8 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.01315, allocations: 4 kB / 355.8 MB, free: 8.234 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.765e-05/0.01324, allocations: 39.83 kB / 355.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007265/0.01396, allocations: 475.5 kB / 356.3 MB, free: 7.703 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/0.01409, allocations: 78.88 kB / 356.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.004e-05/0.01413, allocations: 23.67 kB / 356.4 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.01414, allocations: 4 kB / 356.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.01417, allocations: 41.39 kB / 356.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.953e-06/0.01417, allocations: 0 / 356.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002044/0.01437, allocations: 97.56 kB / 356.5 MB, free: 7.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.01441, allocations: 51.41 kB / 356.6 MB, free: 7.367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.01462, allocations: 296.1 kB / 356.9 MB, free: 7.059 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.01464, allocations: 33.69 kB / 356.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.01476, allocations: 207 kB / 357.1 MB, free: 6.812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.01479, allocations: 47.61 kB / 357.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.01485, allocations: 39.36 kB / 357.2 MB, free: 6.719 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.01501, allocations: 0.5118 MB / 357.7 MB, free: 6.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.019e-05/0.01504, allocations: 11.98 kB / 357.7 MB, free: 6.184 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/0.01511, allocations: 82.02 kB / 357.8 MB, free: 6.078 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.01522, allocations: 97.28 kB / 357.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01523, allocations: 4 kB / 357.9 MB, free: 5.957 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001898/0.01542, allocations: 141.3 kB / 358 MB, free: 5.812 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.01543, allocations: 7.984 kB / 358 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.01544, allocations: 0 / 358 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.01545, allocations: 4 kB / 358 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.01559, allocations: 35.92 kB / 358.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.01559, allocations: 4 kB / 358.1 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.01568, allocations: 19.84 kB / 358.1 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.01569, allocations: 8.156 kB / 358.1 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 9.519e-05/0.01579, allocations: 164.5 kB / 358.3 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.01583, allocations: 27.8 kB / 358.3 MB, free: 5.535 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.01588, allocations: 25.77 kB / 358.3 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01588, allocations: 4 kB / 358.3 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.01588, allocations: 0 / 358.3 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01589, allocations: 0 / 358.3 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.01608, allocations: 149.2 kB / 358.5 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.01609, allocations: 0 / 358.5 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-05/0.01617, allocations: 15.98 kB / 358.5 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.01618, allocations: 11.94 kB / 358.5 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.01619, allocations: 7.938 kB / 358.5 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.01619, allocations: 0 / 358.5 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.01619, allocations: 0 / 358.5 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002234/0.01641, allocations: 251.7 kB / 358.7 MB, free: 5.031 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.149e-05/0.01648, allocations: 31.78 kB / 358.8 MB, free: 5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.0165, allocations: 11.94 kB / 358.8 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.763e-05/0.01659, allocations: 0 / 358.8 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/0.01661, allocations: 11.92 kB / 358.8 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.01661, allocations: 0 / 358.8 MB, free: 4.977 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001117/0.01672, allocations: 201.1 kB / 359 MB, free: 4.781 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01672, allocations: 4.031 kB / 359 MB, free: 4.777 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004155/0.01714, allocations: 51.95 kB / 359 MB, free: 4.727 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.094e-05/0.01722, allocations: 91.25 kB / 359.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.01735, allocations: 63.53 kB / 359.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01735, allocations: 0 / 359.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.093e-05/0.01739, allocations: 31.67 kB / 359.2 MB, free: 4.523 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.01777, allocations: 66.3 kB / 359.3 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.001344/0.01912, allocations: 453.7 kB / 359.7 MB, free: 3.996 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.848e-05/0.01917, allocations: 80.31 kB / 359.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.388e-05/0.01926, allocations: 21.64 kB / 359.8 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.01939, allocations: 114.2 kB / 359.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01939, allocations: 0 / 359.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of Templates: time 0.00414/0.02353, allocations: 2.536 MB / 362.5 MB, free: 1.285 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.7999251787550747]