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.001929/0.001929, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 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.002069/0.002069, allocations: 220.6 kB / 22.25 MB, free: 3.582 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 1.793/1.793, allocations: 230.6 MB / 256 MB, free: 9.59 MB / 202.7 MB " [Timeout remaining time 178] 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.1213/0.1213, allocations: 17.16 MB / 329.6 MB, free: 0.7109 MB / 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: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003729/0.003729, allocations: 67.91 kB / 460.7 MB, free: 26.39 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1214, allocations: 57.78 MB / 0.5063 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.004836/0.1262, allocations: 2.723 MB / 0.509 GB, free: 13.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005912/0.1321, allocations: 2.747 MB / 0.5116 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002558/0.1324, allocations: 19.88 kB / 0.5117 GB, free: 11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.1326, allocations: 51.5 kB / 0.5117 GB, free: 10.95 MB / 378.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.001339/0.134, allocations: 406 kB / 0.5121 GB, free: 10.55 MB / 378.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.001174/0.1351, allocations: 446 kB / 0.5125 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004841/0.1356, allocations: 334.4 kB / 0.5128 GB, free: 9.789 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.1358, allocations: 40.91 kB / 0.5129 GB, free: 9.746 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.136, allocations: 119.5 kB / 0.513 GB, free: 9.629 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.1362, allocations: 127.4 kB / 0.5131 GB, free: 9.504 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.27e-05/0.1363, allocations: 19.98 kB / 0.5131 GB, free: 9.484 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.534e-05/0.1363, allocations: 27.98 kB / 0.5132 GB, free: 9.457 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.82e-05/0.1364, allocations: 43.78 kB / 0.5132 GB, free: 9.414 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.1366, allocations: 103.5 kB / 0.5133 GB, free: 9.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.137, allocations: 290.6 kB / 0.5136 GB, free: 9.027 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.137, allocations: 4 kB / 0.5136 GB, free: 9.023 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.137, allocations: 4 kB / 0.5136 GB, free: 9.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.1371, allocations: 0 / 0.5136 GB, free: 9.02 MB / 378.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.0009275/0.138, allocations: 473 kB / 0.514 GB, free: 8.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.138, allocations: 16.03 kB / 0.5141 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.1382, allocations: 36.73 kB / 0.5141 GB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.1387, allocations: 249.4 kB / 0.5143 GB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.1387, allocations: 12.38 kB / 0.5143 GB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.1389, allocations: 20.12 kB / 0.5144 GB, free: 8.176 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.1392, allocations: 141.5 kB / 0.5145 GB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1392, allocations: 0 / 0.5145 GB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.1392, allocations: 11.92 kB / 0.5145 GB, free: 8.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1392, allocations: 4 kB / 0.5145 GB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.1394, allocations: 91.89 kB / 0.5146 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.1404, allocations: 479.8 kB / 0.5151 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.1406, allocations: 102.5 kB / 0.5151 GB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.1407, allocations: 44.84 kB / 0.5152 GB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.1407, allocations: 0 / 0.5152 GB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.1408, allocations: 34.56 kB / 0.5152 GB, free: 7.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 8.91e-07/0.1408, allocations: 0 / 0.5152 GB, free: 7.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003377/0.1411, allocations: 157.4 kB / 0.5154 GB, free: 7.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.1412, allocations: 51.41 kB / 0.5154 GB, free: 7.004 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.1415, allocations: 257.9 kB / 0.5157 GB, free: 6.746 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.1415, allocations: 29.7 kB / 0.5157 GB, free: 6.711 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.1416, allocations: 164.2 kB / 0.5159 GB, free: 6.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.1417, allocations: 39.64 kB / 0.5159 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.078e-05/0.1417, allocations: 37.7 kB / 0.5159 GB, free: 6.465 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.1419, allocations: 338.8 kB / 0.5163 GB, free: 6.125 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.768e-05/0.142, allocations: 43.94 kB / 0.5163 GB, free: 6.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.1421, allocations: 87.52 kB / 0.5164 GB, free: 5.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1423, allocations: 124.2 kB / 0.5165 GB, free: 5.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1423, allocations: 0 / 0.5165 GB, free: 5.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003009/0.1426, allocations: 181.3 kB / 0.5167 GB, free: 5.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1427, allocations: 10.97 kB / 0.5167 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1427, allocations: 0 / 0.5167 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1427, allocations: 4 kB / 0.5167 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.1429, allocations: 35.92 kB / 0.5167 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1429, allocations: 4.156 kB / 0.5167 GB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.143, allocations: 19.89 kB / 0.5167 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.143, allocations: 8 kB / 0.5167 GB, free: 5.582 MB / 378.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 0.0001453/0.1432, allocations: 141.7 kB / 0.5169 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.1432, allocations: 19.86 kB / 0.5169 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.34e-05/0.1433, allocations: 29.7 kB / 0.5169 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1433, allocations: 0 / 0.5169 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1433, allocations: 0 / 0.5169 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1433, allocations: 3.938 kB / 0.5169 GB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.1436, allocations: 197.1 kB / 0.5171 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1436, allocations: 4 kB / 0.5171 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.1437, allocations: 19.98 kB / 0.5171 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1437, allocations: 0 / 0.5171 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1437, allocations: 4 kB / 0.5171 GB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1437, allocations: 0 / 0.5171 GB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.1437, allocations: 7.938 kB / 0.5172 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.1441, allocations: 271.5 kB / 0.5174 GB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.361e-05/0.1442, allocations: 31.88 kB / 0.5174 GB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.1442, allocations: 3.984 kB / 0.5174 GB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1443, allocations: 4 kB / 0.5175 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.1444, allocations: 8.062 kB / 0.5175 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1444, allocations: 4 kB / 0.5175 GB, free: 4.789 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002238/0.1446, allocations: 181.2 kB / 0.5176 GB, free: 4.609 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1446, allocations: 0 / 0.5176 GB, free: 4.609 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002923/0.1449, allocations: 51.89 kB / 0.5177 GB, free: 4.559 MB / 378.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 0.000132/0.145, allocations: 95.19 kB / 0.5178 GB, free: 4.457 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002383/0.1453, allocations: 103.8 kB / 0.5179 GB, free: 4.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1453, allocations: 0 / 0.5179 GB, free: 4.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.489e-05/0.1454, allocations: 40.28 kB / 0.5179 GB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.1458, allocations: 56.45 kB / 0.518 GB, free: 4.262 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009179/0.1467, allocations: 442 kB / 0.5184 GB, free: 3.805 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/0.1469, allocations: 138.2 kB / 0.5185 GB, free: 3.648 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.147, allocations: 29.91 kB / 0.5185 GB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.01e-05/0.147, allocations: 23.42 kB / 0.5186 GB, free: 3.598 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.147, allocations: 0 / 0.5186 GB, free: 3.598 MB / 378.7 MB Notification: Performance of Templates: time 0.007191/0.1542, allocations: 2.575 MB / 0.5211 GB, free: 1.07 MB / 378.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: 5.673801171127707]