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.001101/0.001101, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001396/0.002497, allocations: 440 kB / 10.41 MB, free: 284 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.001098/0.001098, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001827/0.002925, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.001/1.001, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08883/1.09, allocations: 53.66 MB / 243.4 MB, free: 15.49 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.05924/0.05924, allocations: 12.75 MB / 256.9 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.009502/0.06874, allocations: 4.828 MB / 261.7 MB, free: 13.14 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.673e-06/1.673e-06, allocations: 0 / 263 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.392e-05, allocations: 2.312 kB / 263 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.004534/0.004558, allocations: 2.976 MB / 266 MB, free: 8.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.009528, allocations: 2.823 MB / 268.8 MB, free: 6.031 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00026/0.009788, allocations: 15.88 kB / 268.8 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.009953, allocations: 47.52 kB / 268.9 MB, free: 5.969 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.001263/0.01122, allocations: 401.6 kB / 269.2 MB, free: 5.574 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.00111/0.01233, allocations: 438.4 kB / 269.7 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005047/0.01283, allocations: 342.3 kB / 270 MB, free: 4.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.01298, allocations: 38.88 kB / 270 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.01328, allocations: 196.2 kB / 270.2 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.01353, allocations: 115.6 kB / 270.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.01357, allocations: 16 kB / 270.4 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.01368, allocations: 23.92 kB / 270.4 MB, free: 4.426 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.01375, allocations: 39.81 kB / 270.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.501e-05/0.01385, allocations: 71.88 kB / 270.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.01421, allocations: 203.2 kB / 270.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-05/0.01423, allocations: 7.984 kB / 270.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.01423, allocations: 0 / 270.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.01424, allocations: 0 / 270.7 MB, free: 4.109 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.0008038/0.01504, allocations: 0.5069 MB / 271.2 MB, free: 3.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.01508, allocations: 8.031 kB / 271.2 MB, free: 3.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.01532, allocations: 114 kB / 271.3 MB, free: 3.441 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.0157, allocations: 240.7 kB / 271.6 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.01572, allocations: 16.23 kB / 271.6 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.01576, allocations: 16.12 kB / 271.6 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.01592, allocations: 101.9 kB / 271.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.01593, allocations: 0 / 271.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.01594, allocations: 4 kB / 271.7 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.01595, allocations: 4 kB / 271.7 MB, free: 3.035 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.085e-05/0.01602, allocations: 43.77 kB / 271.7 MB, free: 2.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006577/0.01668, allocations: 346.3 kB / 272.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.01682, allocations: 106.9 kB / 272.2 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.783e-05/0.01686, allocations: 20.84 kB / 272.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.01687, allocations: 0 / 272.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.0169, allocations: 42.48 kB / 272.3 MB, free: 2.445 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.0169, allocations: 0 / 272.3 MB, free: 2.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000186/0.01709, allocations: 81.61 kB / 272.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.01712, allocations: 51.41 kB / 272.4 MB, free: 2.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.01731, allocations: 244.9 kB / 272.6 MB, free: 2.047 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.01732, allocations: 25.7 kB / 272.6 MB, free: 2.016 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.889e-05/0.01741, allocations: 148.8 kB / 272.8 MB, free: 1.863 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.01744, allocations: 35.64 kB / 272.8 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.01748, allocations: 41.69 kB / 272.9 MB, free: 1.781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.01757, allocations: 338.7 kB / 273.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.445e-05/0.01759, allocations: 14.83 kB / 273.2 MB, free: 1.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.809e-05/0.01765, allocations: 65 kB / 273.3 MB, free: 1.344 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.63e-05/0.01774, allocations: 91.25 kB / 273.4 MB, free: 1.238 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01774, allocations: 0 / 273.4 MB, free: 1.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001178/0.01786, allocations: 108.3 kB / 273.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.01787, allocations: 6.969 kB / 273.5 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.01788, allocations: 0 / 273.5 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.0179, allocations: 8.156 kB / 273.5 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.01812, allocations: 51.91 kB / 273.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.01813, allocations: 4 kB / 273.5 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.495e-05/0.01818, allocations: 15.89 kB / 273.6 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.01819, allocations: 11.98 kB / 273.6 MB, free: 1.031 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 7.093e-05/0.01826, allocations: 128.5 kB / 273.7 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.01828, allocations: 11.98 kB / 273.7 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.767e-05/0.01832, allocations: 25.78 kB / 273.7 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.01832, allocations: 3.984 kB / 273.7 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.01833, allocations: 4 kB / 273.7 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.01833, allocations: 0 / 273.7 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.01851, allocations: 125.7 kB / 273.9 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01851, allocations: 0 / 273.9 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.01869, allocations: 31.97 kB / 273.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.361e-05/0.01875, allocations: 23.8 kB / 273.9 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.01876, allocations: 0 / 273.9 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.01877, allocations: 0 / 273.9 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.01877, allocations: 7.938 kB / 273.9 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.01877, allocations: 0 / 273.9 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.01902, allocations: 234.2 kB / 274.2 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.01905, allocations: 4 kB / 274.2 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.01915, allocations: 7.938 kB / 274.2 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.01917, allocations: 3.984 kB / 274.2 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.01918, allocations: 4 kB / 274.2 MB, free: 392 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.861e-05/0.01927, allocations: 74.78 kB / 274.2 MB, free: 320 kB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01927, allocations: 4 kB / 274.2 MB, free: 316 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.01953, allocations: 55.88 kB / 274.3 MB, free: 260 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 0.0001152/0.01965, allocations: 76.42 kB / 274.4 MB, free: 176 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.01978, allocations: 60.75 kB / 274.4 MB, free: 112 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.01979, allocations: 4 kB / 274.4 MB, free: 108 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.984e-05/0.01984, allocations: 32.83 kB / 274.5 MB, free: 72 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1003/0.1201, allocations: 375.5 kB / 274.8 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004764/0.1249, allocations: 467.3 kB / 275.3 MB, free: 7.145 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.561e-05/0.1249, allocations: 85.88 kB / 275.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.394e-05/0.125, allocations: 22.78 kB / 275.4 MB, free: 7.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1251, allocations: 88.25 kB / 275.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1251, allocations: 1.375 kB / 275.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of Templates: time 0.005476/0.1306, allocations: 2.554 MB / 278 MB, free: 6.879 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.7708651442080736]