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.0008877/0.0008877, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009107/0.0009107, allocations: 177 kB / 23.36 MB, free: 1.129 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.9366/0.9366, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.05244/0.05244, allocations: 12.76 MB / 273 MB, free: 168 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.583e-06/1.583e-06, allocations: 0 / 293.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.439e-05/2.597e-05, allocations: 3.188 kB / 293.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002944/0.00297, allocations: 2.674 MB / 296.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.006109, allocations: 2.788 MB / 299.3 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.006241, allocations: 12.69 kB / 299.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.006388, allocations: 41.69 kB / 299.4 MB, free: 8.449 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.0009559/0.007344, allocations: 413 kB / 299.8 MB, free: 8.238 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.0007411/0.008085, allocations: 425.7 kB / 300.2 MB, free: 8.039 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002906/0.008375, allocations: 299.4 kB / 300.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.909e-05/0.008474, allocations: 24.45 kB / 300.5 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.008621, allocations: 145.9 kB / 300.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.00882, allocations: 99.52 kB / 300.8 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.008844, allocations: 12.34 kB / 300.8 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.359e-05/0.008897, allocations: 20.05 kB / 300.8 MB, free: 7.789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.008948, allocations: 41.55 kB / 300.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.012e-05/0.009009, allocations: 66 kB / 300.9 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.009212, allocations: 190.3 kB / 301.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.009214, allocations: 0 / 301.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.009215, allocations: 1.125 kB / 301.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.009219, allocations: 4 kB / 301.1 MB, free: 7.652 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.0004314/0.00965, allocations: 421.5 kB / 301.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.009682, allocations: 12.64 kB / 301.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.009804, allocations: 26.81 kB / 301.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.01002, allocations: 231.8 kB / 301.8 MB, free: 7.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.01004, allocations: 8.5 kB / 301.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.01006, allocations: 14 kB / 301.8 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.01017, allocations: 87.25 kB / 301.9 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.01019, allocations: 5.969 kB / 301.9 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.01019, allocations: 0 / 301.9 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.0102, allocations: 6.75 kB / 301.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.762e-05/0.01025, allocations: 34.23 kB / 301.9 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.01069, allocations: 290.5 kB / 302.2 MB, free: 6.859 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.96e-05/0.01079, allocations: 108.6 kB / 302.3 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.439e-05/0.01081, allocations: 17.27 kB / 302.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.01082, allocations: 10.69 kB / 302.3 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.01084, allocations: 36.64 kB / 302.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.01084, allocations: 0 / 302.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001314/0.01097, allocations: 76.45 kB / 302.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.01099, allocations: 54.16 kB / 302.5 MB, free: 6.617 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.01112, allocations: 235.2 kB / 302.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-06/0.01113, allocations: 33.64 kB / 302.8 MB, free: 6.422 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.01117, allocations: 132 kB / 302.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.01119, allocations: 38.48 kB / 302.9 MB, free: 6.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.01124, allocations: 39.81 kB / 303 MB, free: 6.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.297e-05/0.01129, allocations: 330.4 kB / 303.3 MB, free: 5.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.368e-05/0.01132, allocations: 18.52 kB / 303.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.998e-05/0.01136, allocations: 59.94 kB / 303.4 MB, free: 5.867 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.886e-05/0.01144, allocations: 94.66 kB / 303.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01144, allocations: 0 / 303.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001152/0.01155, allocations: 113.4 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.01157, allocations: 8.75 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.01157, allocations: 1.219 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.01158, allocations: 2.281 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.01169, allocations: 43.92 kB / 303.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.0117, allocations: 11.98 kB / 303.6 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.01175, allocations: 17.28 kB / 303.6 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.01176, allocations: 3.969 kB / 303.6 MB, free: 5.715 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 4.836e-05/0.01181, allocations: 119.5 kB / 303.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.01183, allocations: 12.09 kB / 303.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.01186, allocations: 26.98 kB / 303.8 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01186, allocations: 1.188 kB / 303.8 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.01187, allocations: 0 / 303.8 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.01187, allocations: 6.984 kB / 303.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.01198, allocations: 117.1 kB / 303.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01198, allocations: 1.375 kB / 303.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.565e-05/0.01204, allocations: 17.09 kB / 303.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01204, allocations: 5.047 kB / 303.9 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.01205, allocations: 5.375 kB / 304 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.01205, allocations: 0 / 304 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01205, allocations: 5.594 kB / 304 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.01218, allocations: 232.9 kB / 304.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.01222, allocations: 23.33 kB / 304.2 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.01223, allocations: 2.609 kB / 304.2 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.68e-05/0.01228, allocations: 12.94 kB / 304.2 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.01229, allocations: 6.234 kB / 304.2 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.0123, allocations: 1.344 kB / 304.2 MB, free: 5.246 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.454e-05/0.01235, allocations: 75.95 kB / 304.3 MB, free: 5.227 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01235, allocations: 0 / 304.3 MB, free: 5.227 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001542/0.01251, allocations: 45.83 kB / 304.4 MB, free: 5.219 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 6.875e-05/0.01257, allocations: 81.19 kB / 304.4 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.989e-05/0.01267, allocations: 67.39 kB / 304.5 MB, free: 5.121 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.01268, allocations: 1.375 kB / 304.5 MB, free: 5.121 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.315e-05/0.0127, allocations: 25.97 kB / 304.5 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.0129, allocations: 45.39 kB / 304.6 MB, free: 5.094 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.0009042/0.01381, allocations: 432 kB / 305 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.271e-05/0.01385, allocations: 78.53 kB / 305.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.417e-05/0.01391, allocations: 17.19 kB / 305.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.989e-05/0.014, allocations: 83.28 kB / 305.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.014, allocations: 0 / 305.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of Templates: time 0.004082/0.01809, allocations: 2.371 MB / 307.5 MB, free: 3.309 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 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7010389980860054]