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.0008401/0.0008401, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.001998, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0009063/0.0009063, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001192/0.002098, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.8941/0.8941, allocations: 177.1 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07892/0.973, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.05653/0.05653, allocations: 12.75 MB / 256.7 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007152/0.06368, allocations: 4.824 MB / 261.5 MB, free: 13.27 MB / 266.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.583e-06/1.583e-06, allocations: 0 / 262.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.241e-05, allocations: 5.547 kB / 262.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.004323/0.004346, allocations: 2.96 MB / 265.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.008595, allocations: 2.839 MB / 268.6 MB, free: 6.172 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.008743, allocations: 11.88 kB / 268.6 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.008891, allocations: 43.52 kB / 268.6 MB, free: 6.117 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.0009811/0.009872, allocations: 397.7 kB / 269 MB, free: 5.727 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.0008576/0.01073, allocations: 434.4 kB / 269.5 MB, free: 5.301 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.01113, allocations: 350.2 kB / 269.8 MB, free: 4.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.01127, allocations: 38.88 kB / 269.8 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.01151, allocations: 188.3 kB / 270 MB, free: 4.734 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.01176, allocations: 115.6 kB / 270.1 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.0118, allocations: 16 kB / 270.1 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.535e-05/0.01189, allocations: 27.94 kB / 270.2 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.01196, allocations: 39.8 kB / 270.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.918e-05/0.01206, allocations: 67.88 kB / 270.3 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.01238, allocations: 207.1 kB / 270.5 MB, free: 4.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-05/0.0124, allocations: 0 / 270.5 MB, free: 4.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.0124, allocations: 0 / 270.5 MB, free: 4.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.01242, allocations: 0 / 270.5 MB, free: 4.27 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.000752/0.01317, allocations: 0.507 MB / 271 MB, free: 3.738 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.0132, allocations: 8.031 kB / 271 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.01341, allocations: 118 kB / 271.1 MB, free: 3.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.01377, allocations: 232.7 kB / 271.3 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.01379, allocations: 20.23 kB / 271.4 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.01382, allocations: 20.12 kB / 271.4 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.014, allocations: 105.9 kB / 271.5 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.01401, allocations: 0 / 271.5 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.01403, allocations: 4 kB / 271.5 MB, free: 3.191 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.01404, allocations: 4 kB / 271.5 MB, free: 3.188 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.382e-05/0.01412, allocations: 35.84 kB / 271.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006998/0.01482, allocations: 350.3 kB / 271.9 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.01496, allocations: 106.9 kB / 272 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.588e-05/0.015, allocations: 20.84 kB / 272 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-06/0.01501, allocations: 0 / 272 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.01503, allocations: 38.5 kB / 272 MB, free: 2.605 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.01503, allocations: 4 kB / 272 MB, free: 2.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001773/0.01521, allocations: 77.66 kB / 272.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.01525, allocations: 55.34 kB / 272.2 MB, free: 2.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.01543, allocations: 244.9 kB / 272.4 MB, free: 2.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.01545, allocations: 25.7 kB / 272.4 MB, free: 2.168 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.01553, allocations: 144.7 kB / 272.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.01557, allocations: 43.62 kB / 272.6 MB, free: 1.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.01563, allocations: 37.69 kB / 272.6 MB, free: 1.938 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.01574, allocations: 338.7 kB / 273 MB, free: 1.598 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.814e-05/0.01578, allocations: 18.83 kB / 273 MB, free: 1.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.324e-05/0.01584, allocations: 61.08 kB / 273.1 MB, free: 1.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.01595, allocations: 79.88 kB / 273.1 MB, free: 1.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.01595, allocations: 0 / 273.1 MB, free: 1.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000177/0.01613, allocations: 115.7 kB / 273.2 MB, free: 1.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.01615, allocations: 4.156 kB / 273.3 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.01615, allocations: 8 kB / 273.3 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.01617, allocations: 0 / 273.3 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.01649, allocations: 51.95 kB / 273.3 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.0165, allocations: 7.938 kB / 273.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.143e-05/0.01659, allocations: 11.89 kB / 273.3 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.0166, allocations: 8 kB / 273.3 MB, free: 1.195 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 8.825e-05/0.01669, allocations: 124.5 kB / 273.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.01673, allocations: 15.98 kB / 273.5 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.931e-05/0.01678, allocations: 25.77 kB / 273.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.01678, allocations: 4 kB / 273.5 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.01678, allocations: 0 / 273.5 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01678, allocations: 4 kB / 273.5 MB, free: 1.016 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.01698, allocations: 121.7 kB / 273.6 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01698, allocations: 0 / 273.6 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.01714, allocations: 35.91 kB / 273.7 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.0172, allocations: 27.84 kB / 273.7 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.01721, allocations: 8 kB / 273.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.01722, allocations: 0 / 273.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.01722, allocations: 0 / 273.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01722, allocations: 4 kB / 273.7 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.01745, allocations: 234.1 kB / 273.9 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.01747, allocations: 4 kB / 273.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.31e-05/0.01757, allocations: 0 / 273.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.01758, allocations: 11.92 kB / 273.9 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.01759, allocations: 0 / 273.9 MB, free: 0.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.554e-05/0.01768, allocations: 82.77 kB / 274 MB, free: 468 kB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01768, allocations: 0 / 274 MB, free: 468 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002817/0.01796, allocations: 55.89 kB / 274.1 MB, free: 412 kB / 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 9.969e-05/0.01806, allocations: 76.45 kB / 274.2 MB, free: 328 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.01819, allocations: 60.7 kB / 274.2 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.01819, allocations: 4 kB / 274.2 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.01823, allocations: 24.78 kB / 274.2 MB, free: 232 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.01858, allocations: 72.94 kB / 274.3 MB, free: 160 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1049/0.1235, allocations: 473.8 kB / 274.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.615e-05/0.1236, allocations: 85.27 kB / 274.9 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1237, allocations: 24.17 kB / 274.9 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1238, allocations: 85.3 kB / 275 MB, free: 7.48 MB / 266.7 MB Notification: Performance of SimCode: time 1.412e-06/0.1238, allocations: 0 / 275 MB, free: 7.48 MB / 266.7 MB Notification: Performance of Templates: time 0.004843/0.1286, allocations: 2.689 MB / 277.7 MB, free: 7.324 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.554755548015237]