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.0009653/0.0009653, allocations: 104.3 kB / 19.71 MB, free: 440 kB / 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.001057/0.001057, allocations: 216.2 kB / 23 MB, free: 2.977 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.045/1.045, allocations: 230.6 MB / 256.8 MB, free: 9.609 MB / 202.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.05838/0.05838, allocations: 17.15 MB / 330.3 MB, free: 0.7227 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.00167/0.00167, allocations: 67.89 kB / 460.7 MB, free: 27.16 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1063, allocations: 57.77 MB / 0.5063 GB, free: 1.285 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003187/0.1095, allocations: 2.719 MB / 0.5089 GB, free: 14.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.1122, allocations: 2.754 MB / 0.5116 GB, free: 11.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.1124, allocations: 11.88 kB / 0.5116 GB, free: 11.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1125, allocations: 43.58 kB / 0.5117 GB, free: 11.73 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.0007711/0.1133, allocations: 413.9 kB / 0.5121 GB, free: 11.32 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.0005112/0.1138, allocations: 442.1 kB / 0.5125 GB, free: 10.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.1141, allocations: 338.4 kB / 0.5128 GB, free: 10.56 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.1142, allocations: 36.92 kB / 0.5129 GB, free: 10.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.558e-05/0.1143, allocations: 119.5 kB / 0.513 GB, free: 10.4 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.1145, allocations: 127.4 kB / 0.5131 GB, free: 10.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.1145, allocations: 20 kB / 0.5131 GB, free: 10.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.433e-05/0.1146, allocations: 27.94 kB / 0.5131 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/0.1146, allocations: 47.77 kB / 0.5132 GB, free: 10.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.005e-05/0.1147, allocations: 99.53 kB / 0.5133 GB, free: 10.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.1149, allocations: 282.8 kB / 0.5135 GB, free: 9.809 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1149, allocations: 0 / 0.5135 GB, free: 9.809 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1149, allocations: 0 / 0.5135 GB, free: 9.809 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.115, allocations: 0 / 0.5135 GB, free: 9.809 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.0005489/0.1155, allocations: 496.8 kB / 0.514 GB, free: 9.293 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1155, allocations: 12.03 kB / 0.514 GB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1157, allocations: 32.75 kB / 0.5141 GB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.116, allocations: 249.4 kB / 0.5143 GB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.116, allocations: 20.31 kB / 0.5143 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.116, allocations: 16.12 kB / 0.5143 GB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.1164, allocations: 137.5 kB / 0.5145 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1164, allocations: 0 / 0.5145 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.1164, allocations: 8 kB / 0.5145 GB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1164, allocations: 4 kB / 0.5145 GB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.1166, allocations: 95.88 kB / 0.5146 GB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.1172, allocations: 475.8 kB / 0.515 GB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.1173, allocations: 106.5 kB / 0.5151 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.764e-05/0.1173, allocations: 44.83 kB / 0.5152 GB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.1174, allocations: 0 / 0.5152 GB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.1174, allocations: 34.56 kB / 0.5152 GB, free: 8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 8.42e-07/0.1174, allocations: 4 kB / 0.5152 GB, free: 7.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002204/0.1176, allocations: 149.5 kB / 0.5153 GB, free: 7.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.1176, allocations: 55.41 kB / 0.5154 GB, free: 7.777 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.1178, allocations: 261.8 kB / 0.5156 GB, free: 7.516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1178, allocations: 25.7 kB / 0.5157 GB, free: 7.484 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.1179, allocations: 160.2 kB / 0.5158 GB, free: 7.324 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.1179, allocations: 35.69 kB / 0.5159 GB, free: 7.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.1179, allocations: 41.7 kB / 0.5159 GB, free: 7.242 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.25e-05/0.118, allocations: 338.8 kB / 0.5162 GB, free: 6.902 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.118, allocations: 39.94 kB / 0.5163 GB, free: 6.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.611e-05/0.1181, allocations: 83.47 kB / 0.5163 GB, free: 6.766 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.1182, allocations: 140.2 kB / 0.5165 GB, free: 6.613 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1182, allocations: 4 kB / 0.5165 GB, free: 6.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001741/0.1184, allocations: 177.7 kB / 0.5166 GB, free: 6.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.1184, allocations: 6.969 kB / 0.5167 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1184, allocations: 7.984 kB / 0.5167 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.1184, allocations: 160 / 0.5167 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.1186, allocations: 47.86 kB / 0.5167 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1186, allocations: 0 / 0.5167 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.888e-05/0.1186, allocations: 19.89 kB / 0.5167 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.1186, allocations: 4 kB / 0.5167 GB, free: 6.348 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 8.5e-05/0.1187, allocations: 137.7 kB / 0.5169 GB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.1187, allocations: 19.86 kB / 0.5169 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.1188, allocations: 29.7 kB / 0.5169 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1188, allocations: 0 / 0.5169 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1188, allocations: 0 / 0.5169 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1188, allocations: 3.984 kB / 0.5169 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.1189, allocations: 197.2 kB / 0.5171 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1189, allocations: 0 / 0.5171 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.243e-05/0.119, allocations: 16 kB / 0.5171 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.119, allocations: 0 / 0.5171 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.119, allocations: 7.984 kB / 0.5171 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.119, allocations: 0 / 0.5171 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.119, allocations: 0 / 0.5171 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.1192, allocations: 271.2 kB / 0.5174 GB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.1193, allocations: 31.81 kB / 0.5174 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1193, allocations: 4 kB / 0.5174 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.272e-05/0.1193, allocations: 4.062 kB / 0.5174 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.977e-05/0.1194, allocations: 15.92 kB / 0.5174 GB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1194, allocations: 0 / 0.5174 GB, free: 5.566 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.1195, allocations: 181.2 kB / 0.5176 GB, free: 5.387 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1195, allocations: 0 / 0.5176 GB, free: 5.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000179/0.1196, allocations: 55.89 kB / 0.5177 GB, free: 5.332 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 6.14e-05/0.1197, allocations: 95.19 kB / 0.5178 GB, free: 5.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.1198, allocations: 99.77 kB / 0.5178 GB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1198, allocations: 8.25 kB / 0.5179 GB, free: 5.125 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.638e-05/0.1199, allocations: 40.02 kB / 0.5179 GB, free: 5.086 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1202, allocations: 52.41 kB / 0.5179 GB, free: 5.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005341/0.1207, allocations: 479.6 kB / 0.5184 GB, free: 4.535 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.514e-05/0.1208, allocations: 138.2 kB / 0.5185 GB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.1208, allocations: 19.44 kB / 0.5186 GB, free: 4.359 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1208, allocations: 8 kB / 0.5186 GB, free: 4.352 MB / 378.7 MB Notification: Performance of Templates: time 0.003079/0.1239, allocations: 2.654 MB / 0.5211 GB, free: 1.707 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 > Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.289191358722746]