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.001103/0.001103, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001597/0.0027, 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.0007312/0.0007312, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001025/0.001756, 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.9802/0.9802, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08227/1.062, 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.05959/0.05959, allocations: 12.75 MB / 256.7 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.008621/0.06821, allocations: 4.828 MB / 261.5 MB, free: 13.26 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.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: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 262.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.943e-05, allocations: 2.312 kB / 262.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002832/0.002851, allocations: 2.73 MB / 265.5 MB, free: 9.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.006159, allocations: 2.8 MB / 268.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.006294, allocations: 23.75 kB / 268.3 MB, free: 6.418 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.758e-05/0.006391, allocations: 31.66 kB / 268.4 MB, free: 6.387 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.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.000905/0.007296, allocations: 381.8 kB / 268.7 MB, free: 6.012 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.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.0007866/0.008083, allocations: 418.5 kB / 269.2 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.008405, allocations: 290.6 kB / 269.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.373e-05/0.008488, allocations: 26.55 kB / 269.5 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.008626, allocations: 156.4 kB / 269.6 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.008781, allocations: 103.7 kB / 269.7 MB, free: 5.035 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.008803, allocations: 12 kB / 269.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.92e-05/0.008862, allocations: 16 kB / 269.7 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.019e-05/0.008902, allocations: 31.88 kB / 269.8 MB, free: 4.977 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.396e-05/0.008956, allocations: 59.81 kB / 269.8 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.009153, allocations: 183.2 kB / 270 MB, free: 4.738 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.009161, allocations: 0 / 270 MB, free: 4.738 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.009161, allocations: 0 / 270 MB, free: 4.738 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.009169, allocations: 0 / 270 MB, free: 4.738 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004252/0.009595, allocations: 467.3 kB / 270.5 MB, free: 4.258 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.331e-05/0.009618, allocations: 8.031 kB / 270.5 MB, free: 4.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.009753, allocations: 114 kB / 270.6 MB, free: 4.121 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.00998, allocations: 224.8 kB / 270.8 MB, free: 3.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.604e-06/0.009987, allocations: 12.38 kB / 270.8 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.01001, allocations: 16.12 kB / 270.8 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.924e-05/0.0101, allocations: 81.12 kB / 270.9 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.01011, allocations: 4 kB / 270.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-06/0.01011, allocations: 0 / 270.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-06/0.01011, allocations: 0 / 270.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.637e-05/0.01016, allocations: 41.88 kB / 271 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.01056, allocations: 290.6 kB / 271.2 MB, free: 3.418 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.066e-05/0.01065, allocations: 110.9 kB / 271.4 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002893/0.01094, allocations: 20.84 kB / 271.4 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.01094, allocations: 0 / 271.4 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.507e-05/0.01096, allocations: 38.56 kB / 271.4 MB, free: 3.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 7.51e-07/0.01096, allocations: 0 / 271.4 MB, free: 3.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000107/0.01106, allocations: 81.53 kB / 271.5 MB, free: 3.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.164e-05/0.01109, allocations: 51.41 kB / 271.5 MB, free: 3.078 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.0112, allocations: 229 kB / 271.8 MB, free: 2.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.01121, allocations: 33.7 kB / 271.8 MB, free: 2.801 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.01126, allocations: 136.2 kB / 271.9 MB, free: 2.664 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.01128, allocations: 39.62 kB / 272 MB, free: 2.625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.01131, allocations: 41.69 kB / 272 MB, free: 2.578 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.98e-05/0.01138, allocations: 330.8 kB / 272.3 MB, free: 2.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.153e-05/0.0114, allocations: 18.81 kB / 272.4 MB, free: 2.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.828e-05/0.01144, allocations: 61.06 kB / 272.4 MB, free: 2.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.081e-05/0.01151, allocations: 83.88 kB / 272.5 MB, free: 2.047 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01151, allocations: 0 / 272.5 MB, free: 2.047 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001233/0.01164, allocations: 115.2 kB / 272.6 MB, free: 1.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.527e-06/0.01165, allocations: 8 kB / 272.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.01165, allocations: 0 / 272.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.865e-06/0.01166, allocations: 7.938 kB / 272.6 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.01185, allocations: 51.91 kB / 272.7 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.01185, allocations: 160 / 272.7 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.397e-05/0.01191, allocations: 23.84 kB / 272.7 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.01192, allocations: 8 kB / 272.7 MB, free: 1.832 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 5.531e-05/0.01198, allocations: 116.6 kB / 272.8 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.012, allocations: 15.98 kB / 272.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.01203, allocations: 29.7 kB / 272.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.01203, allocations: 0 / 272.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.01203, allocations: 0 / 272.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.01203, allocations: 0 / 272.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.01215, allocations: 113.8 kB / 273 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01215, allocations: 0 / 273 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.01226, allocations: 35.91 kB / 273 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.0123, allocations: 39.83 kB / 273 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.0123, allocations: 4 kB / 273.1 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.01231, allocations: 3.938 kB / 273.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.01231, allocations: 0 / 273.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01231, allocations: 3.984 kB / 273.1 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001453/0.01246, allocations: 222.2 kB / 273.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.01247, allocations: 4 kB / 273.3 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.078e-05/0.01253, allocations: 7.938 kB / 273.3 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.01254, allocations: 15.95 kB / 273.3 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.01254, allocations: 3.938 kB / 273.3 MB, free: 1.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.01259, allocations: 78.77 kB / 273.4 MB, free: 1.105 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01259, allocations: 0 / 273.4 MB, free: 1.105 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000155/0.01275, allocations: 43.95 kB / 273.4 MB, free: 1.062 MB / 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 6.233e-05/0.01281, allocations: 72.42 kB / 273.5 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.34e-05/0.01289, allocations: 64.7 kB / 273.6 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.0129, allocations: 0 / 273.6 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.342e-05/0.01292, allocations: 29.09 kB / 273.6 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.01311, allocations: 61.06 kB / 273.7 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004075/0.01718, allocations: 426.8 kB / 274.1 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.492e-05/0.01724, allocations: 84.25 kB / 274.2 MB, free: 288 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.715e-05/0.01729, allocations: 17.64 kB / 274.2 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.806e-05/0.01738, allocations: 91.28 kB / 274.3 MB, free: 180 kB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01738, allocations: 0 / 274.3 MB, free: 180 kB / 266.7 MB Notification: Performance of Templates: time 0.1039/0.1213, allocations: 2.508 MB / 276.8 MB, free: 7.527 MB / 266.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: 2.5835626404732466]