Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.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.002412/0.002412, allocations: 105.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.00305/0.00305, allocations: 212.1 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.849/1.849, allocations: 230.6 MB / 256 MB, free: 9.629 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.1065/0.1065, allocations: 17.16 MB / 329.6 MB, free: 0.7344 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.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") [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.004065/0.004065, allocations: 67.89 kB / 460.8 MB, free: 26.24 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1948, allocations: 57.76 MB / 0.5064 GB, free: 384 kB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.005006/0.1998, allocations: 2.704 MB / 0.5091 GB, free: 13.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005648/0.2054, allocations: 2.747 MB / 0.5118 GB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.2056, allocations: 11.88 kB / 0.5118 GB, free: 10.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.2058, allocations: 47.52 kB / 0.5118 GB, free: 10.84 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.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001472/0.2073, allocations: 410 kB / 0.5122 GB, free: 10.44 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.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.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.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.2086, allocations: 454 kB / 0.5127 GB, free: 9.996 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005148/0.2091, allocations: 326.4 kB / 0.513 GB, free: 9.676 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.2093, allocations: 36.83 kB / 0.513 GB, free: 9.637 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2095, allocations: 115.5 kB / 0.5131 GB, free: 9.523 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.2098, allocations: 135.4 kB / 0.5132 GB, free: 9.391 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.2099, allocations: 12 kB / 0.5133 GB, free: 9.379 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.851e-05/0.2099, allocations: 23.98 kB / 0.5133 GB, free: 9.355 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.21, allocations: 51.77 kB / 0.5133 GB, free: 9.305 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2102, allocations: 95.48 kB / 0.5134 GB, free: 9.211 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004644/0.2106, allocations: 278.7 kB / 0.5137 GB, free: 8.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2106, allocations: 0 / 0.5137 GB, free: 8.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2106, allocations: 8 kB / 0.5137 GB, free: 8.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2107, allocations: 0 / 0.5137 GB, free: 8.93 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.00107/0.2117, allocations: 473 kB / 0.5141 GB, free: 8.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2118, allocations: 8.031 kB / 0.5141 GB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.212, allocations: 36.75 kB / 0.5142 GB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.2125, allocations: 253.4 kB / 0.5144 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.2125, allocations: 8.375 kB / 0.5144 GB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.2126, allocations: 24.12 kB / 0.5145 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.2129, allocations: 130.1 kB / 0.5146 GB, free: 7.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.2129, allocations: 7.938 kB / 0.5146 GB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.2129, allocations: 4 kB / 0.5146 GB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.2129, allocations: 4 kB / 0.5146 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.2131, allocations: 95.92 kB / 0.5147 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.2143, allocations: 455.9 kB / 0.5151 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.2145, allocations: 122.4 kB / 0.5152 GB, free: 7.242 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.2146, allocations: 52.84 kB / 0.5153 GB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.2146, allocations: 0 / 0.5153 GB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.2147, allocations: 30.56 kB / 0.5153 GB, free: 7.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.2147, allocations: 0 / 0.5153 GB, free: 7.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004323/0.2151, allocations: 161.5 kB / 0.5155 GB, free: 6.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.2152, allocations: 59.34 kB / 0.5155 GB, free: 6.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003588/0.2155, allocations: 261.9 kB / 0.5158 GB, free: 6.652 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.2156, allocations: 37.58 kB / 0.5158 GB, free: 6.609 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.2158, allocations: 156.3 kB / 0.516 GB, free: 6.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/0.2158, allocations: 39.62 kB / 0.516 GB, free: 6.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-05/0.2159, allocations: 49.66 kB / 0.516 GB, free: 6.359 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000267/0.2162, allocations: 334.8 kB / 0.5164 GB, free: 6.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.32e-05/0.2163, allocations: 47.92 kB / 0.5164 GB, free: 5.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.2164, allocations: 83.94 kB / 0.5165 GB, free: 5.879 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.2166, allocations: 140.4 kB / 0.5166 GB, free: 5.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2166, allocations: 0 / 0.5166 GB, free: 5.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003438/0.217, allocations: 189.3 kB / 0.5168 GB, free: 5.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.217, allocations: 8 kB / 0.5168 GB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.217, allocations: 0 / 0.5168 GB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.217, allocations: 4 kB / 0.5168 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.2172, allocations: 39.91 kB / 0.5169 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.2173, allocations: 4 kB / 0.5169 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.2174, allocations: 19.83 kB / 0.5169 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.2174, allocations: 8 kB / 0.5169 GB, free: 5.453 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 (21): * Single equations (assignments): 21 * 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.0001596/0.2176, allocations: 141.9 kB / 0.517 GB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.804e-05/0.2176, allocations: 19.86 kB / 0.517 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.612e-05/0.2177, allocations: 25.72 kB / 0.5171 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2177, allocations: 0 / 0.5171 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.2177, allocations: 3.984 kB / 0.5171 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.2177, allocations: 3.938 kB / 0.5171 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.218, allocations: 193.2 kB / 0.5173 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.218, allocations: 0 / 0.5173 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2182, allocations: 23.98 kB / 0.5173 GB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2182, allocations: 3.984 kB / 0.5173 GB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.2182, allocations: 7.938 kB / 0.5173 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2182, allocations: 4 kB / 0.5173 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2182, allocations: 3.938 kB / 0.5173 GB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.2186, allocations: 283.3 kB / 0.5176 GB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-05/0.2187, allocations: 31.81 kB / 0.5176 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.2187, allocations: 8 kB / 0.5176 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.2188, allocations: 0 / 0.5176 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.2189, allocations: 7.984 kB / 0.5176 GB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.2189, allocations: 0 / 0.5176 GB, free: 4.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002263/0.2191, allocations: 185.2 kB / 0.5178 GB, free: 4.465 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2191, allocations: 0 / 0.5178 GB, free: 4.465 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.2194, allocations: 51.95 kB / 0.5178 GB, free: 4.414 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 (11): * Single equations (assignments): 11 * 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.0001251/0.2195, allocations: 111.1 kB / 0.5179 GB, free: 4.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.2198, allocations: 103.9 kB / 0.518 GB, free: 4.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2198, allocations: 3.938 kB / 0.518 GB, free: 4.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.137e-05/0.2199, allocations: 43.92 kB / 0.5181 GB, free: 4.148 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.2203, allocations: 47.95 kB / 0.5181 GB, free: 4.105 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008934/0.2212, allocations: 446.1 kB / 0.5186 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.2214, allocations: 146 kB / 0.5187 GB, free: 3.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.799e-05/0.2215, allocations: 25.94 kB / 0.5187 GB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.542e-05/0.2215, allocations: 23.42 kB / 0.5187 GB, free: 3.434 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2215, allocations: 4 kB / 0.5188 GB, free: 3.43 MB / 378.7 MB Notification: Performance of Templates: time 0.00735/0.2289, allocations: 2.594 MB / 0.5213 GB, free: 0.875 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.sim & ./Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.031844439916313]