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.002544/0.002544, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.003168/0.003168, allocations: 207.9 kB / 22.25 MB, free: 3.57 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.891/1.891, allocations: 230.6 MB / 256 MB, free: 9.582 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.1347/0.1347, allocations: 17.17 MB / 329.6 MB, free: 0.6875 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.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: 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.004886/0.004886, allocations: 71.91 kB / 460.7 MB, free: 26.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1123, allocations: 57.76 MB / 0.5063 GB, free: 500 kB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.004375/0.1167, allocations: 2.525 MB / 0.5088 GB, free: 13.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005074/0.1218, allocations: 2.712 MB / 0.5114 GB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.1219, allocations: 11.88 kB / 0.5114 GB, free: 11.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.1221, allocations: 43.58 kB / 0.5115 GB, free: 11.17 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.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.001207/0.1233, allocations: 397.8 kB / 0.5118 GB, free: 10.79 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.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.001007/0.1243, allocations: 426.1 kB / 0.5122 GB, free: 10.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.1247, allocations: 290.7 kB / 0.5125 GB, free: 10.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1249, allocations: 20.53 kB / 0.5125 GB, free: 10.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.125, allocations: 115.5 kB / 0.5127 GB, free: 9.949 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.1253, allocations: 111.5 kB / 0.5128 GB, free: 9.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1253, allocations: 12 kB / 0.5128 GB, free: 9.828 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.236e-05/0.1254, allocations: 16 kB / 0.5128 GB, free: 9.812 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.1254, allocations: 47.83 kB / 0.5128 GB, free: 9.766 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1255, allocations: 79.55 kB / 0.5129 GB, free: 9.688 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.1259, allocations: 246.9 kB / 0.5131 GB, free: 9.445 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1259, allocations: 0 / 0.5131 GB, free: 9.445 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1259, allocations: 0 / 0.5131 GB, free: 9.445 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1259, allocations: 0 / 0.5131 GB, free: 9.445 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008292/0.1268, allocations: 457.1 kB / 0.5136 GB, free: 8.969 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1268, allocations: 8.031 kB / 0.5136 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.127, allocations: 40.73 kB / 0.5136 GB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.1274, allocations: 233.1 kB / 0.5138 GB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.1274, allocations: 8.375 kB / 0.5139 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.1275, allocations: 16.12 kB / 0.5139 GB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.1277, allocations: 113.5 kB / 0.514 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.1277, allocations: 4 kB / 0.514 GB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.1277, allocations: 0 / 0.514 GB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1277, allocations: 4 kB / 0.514 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.1279, allocations: 79.94 kB / 0.5141 GB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009393/0.1288, allocations: 424 kB / 0.5145 GB, free: 8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.129, allocations: 102.5 kB / 0.5146 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.671e-05/0.1291, allocations: 40.84 kB / 0.5146 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.1291, allocations: 4 kB / 0.5146 GB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1292, allocations: 34.5 kB / 0.5146 GB, free: 7.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.1292, allocations: 4 kB / 0.5146 GB, free: 7.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003409/0.1295, allocations: 153.5 kB / 0.5148 GB, free: 7.641 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.1296, allocations: 55.41 kB / 0.5148 GB, free: 7.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.1299, allocations: 245.8 kB / 0.5151 GB, free: 7.324 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.1299, allocations: 29.7 kB / 0.5151 GB, free: 7.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.13, allocations: 144.3 kB / 0.5152 GB, free: 7.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.424e-05/0.13, allocations: 39.69 kB / 0.5153 GB, free: 7.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.877e-05/0.1301, allocations: 33.72 kB / 0.5153 GB, free: 7.066 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.1303, allocations: 334.8 kB / 0.5156 GB, free: 6.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.148e-05/0.1304, allocations: 43.92 kB / 0.5157 GB, free: 6.688 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.1305, allocations: 87.47 kB / 0.5158 GB, free: 6.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.1307, allocations: 136.2 kB / 0.5159 GB, free: 6.438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1307, allocations: 0 / 0.5159 GB, free: 6.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002776/0.131, allocations: 165.4 kB / 0.516 GB, free: 6.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.87e-05/0.131, allocations: 11.94 kB / 0.5161 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.131, allocations: 4.531 kB / 0.5161 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.1311, allocations: 4 kB / 0.5161 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.1313, allocations: 35.92 kB / 0.5161 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.1313, allocations: 4 kB / 0.5161 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.1314, allocations: 23.78 kB / 0.5161 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1314, allocations: 4 kB / 0.5161 GB, free: 6.184 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.0001343/0.1315, allocations: 137.8 kB / 0.5163 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.682e-05/0.1316, allocations: 23.8 kB / 0.5163 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.817e-05/0.1316, allocations: 29.7 kB / 0.5163 GB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1317, allocations: 4 kB / 0.5163 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1317, allocations: 0 / 0.5163 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1317, allocations: 0 / 0.5163 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.1319, allocations: 181.2 kB / 0.5165 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1319, allocations: 4 kB / 0.5165 GB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.132, allocations: 15.94 kB / 0.5165 GB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.132, allocations: 4 kB / 0.5165 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.1321, allocations: 3.938 kB / 0.5165 GB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.1321, allocations: 4 kB / 0.5165 GB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1321, allocations: 3.984 kB / 0.5165 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.1324, allocations: 267.3 kB / 0.5168 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.118e-05/0.1325, allocations: 31.94 kB / 0.5168 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.1325, allocations: 3.938 kB / 0.5168 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.1326, allocations: 4 kB / 0.5168 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.937e-05/0.1327, allocations: 7.984 kB / 0.5168 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.1327, allocations: 7.938 kB / 0.5168 GB, free: 5.406 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1329, allocations: 169.2 kB / 0.517 GB, free: 5.242 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1329, allocations: 0 / 0.517 GB, free: 5.242 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.1332, allocations: 43.94 kB / 0.517 GB, free: 5.199 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.0001309/0.1333, allocations: 103.2 kB / 0.5171 GB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002444/0.1335, allocations: 99.83 kB / 0.5172 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1335, allocations: 0 / 0.5172 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.968e-05/0.1336, allocations: 40.08 kB / 0.5173 GB, free: 4.953 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.134, allocations: 44.53 kB / 0.5173 GB, free: 4.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007949/0.1348, allocations: 417.7 kB / 0.5177 GB, free: 4.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.135, allocations: 137.4 kB / 0.5178 GB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.1351, allocations: 29.61 kB / 0.5179 GB, free: 4.293 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.358e-05/0.1351, allocations: 19.44 kB / 0.5179 GB, free: 4.273 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1351, allocations: 0 / 0.5179 GB, free: 4.273 MB / 378.7 MB Notification: Performance of Templates: time 0.006164/0.1413, allocations: 2.346 MB / 0.5202 GB, free: 1.973 MB / 378.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: 5.7488543363288045]