Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.001349/0.001349, allocations: 88.52 kB / 19.93 MB, free: 4.605 MB / 18.57 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.001426/0.001426, allocations: 173.9 kB / 23.21 MB, free: 1.328 MB / 18.57 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.9148/0.9148, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.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.06584/0.06584, allocations: 12.74 MB / 272.7 MB, free: 0.5 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_InitSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState") translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 403.2 MB, free: 8.805 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.332e-05, allocations: 2.281 kB / 403.2 MB, free: 8.801 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState): time 0.002686/0.002709, allocations: 2.72 MB / 405.9 MB, free: 6.066 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.005619, allocations: 2.746 MB / 408.7 MB, free: 3.305 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.005762, allocations: 15.81 kB / 408.7 MB, free: 3.289 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.005919, allocations: 47.56 kB / 408.7 MB, free: 3.242 MB / 330.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_InitSteadyState.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_InitSteadyState.A.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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_InitSteadyState.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_InitSteadyState.B.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0008341/0.006753, allocations: 417.7 kB / 409.1 MB, free: 2.832 MB / 330.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_InitSteadyState.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_InitSteadyState.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_InitSteadyState.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_InitSteadyState.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0006112/0.007364, allocations: 445.3 kB / 409.6 MB, free: 2.402 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.007676, allocations: 342.3 kB / 409.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.007802, allocations: 36.86 kB / 409.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.007947, allocations: 163.5 kB / 410.1 MB, free: 1.875 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.008148, allocations: 111.7 kB / 410.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.008175, allocations: 16 kB / 410.2 MB, free: 1.75 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.484e-05/0.00823, allocations: 19.98 kB / 410.2 MB, free: 1.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.24e-05/0.008283, allocations: 55.77 kB / 410.3 MB, free: 1.676 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.125e-05/0.008354, allocations: 83.77 kB / 410.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.008616, allocations: 259.1 kB / 410.6 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.008619, allocations: 0 / 410.6 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.00862, allocations: 0 / 410.6 MB, free: 1.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.008625, allocations: 4 kB / 410.6 MB, free: 1.336 MB / 330.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.0005581/0.009183, allocations: 476.8 kB / 411.1 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.009218, allocations: 15.98 kB / 411.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.009334, allocations: 36.69 kB / 411.2 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.009631, allocations: 248.7 kB / 411.4 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.009645, allocations: 12.38 kB / 411.4 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.009674, allocations: 20.38 kB / 411.4 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.009845, allocations: 138.6 kB / 411.6 MB, free: 356 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.009856, allocations: 3.938 kB / 411.6 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.009869, allocations: 8 kB / 411.6 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.009875, allocations: 4 kB / 411.6 MB, free: 340 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.009992, allocations: 87.94 kB / 411.7 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1621/0.172, allocations: 448.7 kB / 412.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.1722, allocations: 116.1 kB / 412.2 MB, free: 21.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.001e-05/0.1723, allocations: 49.92 kB / 412.3 MB, free: 21.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.1723, allocations: 2.672 kB / 412.3 MB, free: 21.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.1723, allocations: 40.47 kB / 412.3 MB, free: 21.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.1723, allocations: 0 / 412.3 MB, free: 21.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002674/0.1726, allocations: 166.4 kB / 412.5 MB, free: 21.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.288e-05/0.1726, allocations: 52.69 kB / 412.5 MB, free: 21.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1728, allocations: 256.8 kB / 412.8 MB, free: 21.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.1728, allocations: 30.95 kB / 412.8 MB, free: 21.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.972e-05/0.1729, allocations: 152.1 kB / 412.9 MB, free: 21.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.1729, allocations: 45.86 kB / 413 MB, free: 21.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.1729, allocations: 39.03 kB / 413 MB, free: 21.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.173, allocations: 332.1 kB / 413.4 MB, free: 21.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.556e-05/0.173, allocations: 42.84 kB / 413.4 MB, free: 21.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.604e-05/0.1731, allocations: 95.12 kB / 413.5 MB, free: 21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.1732, allocations: 134.7 kB / 413.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1732, allocations: 1.375 kB / 413.6 MB, free: 20.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004165/0.1736, allocations: 243.7 kB / 413.9 MB, free: 20.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1736, allocations: 5.625 kB / 413.9 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1736, allocations: 5.031 kB / 413.9 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.1739, allocations: 66.73 kB / 413.9 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.184e-05/0.174, allocations: 28.28 kB / 414 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.1752, allocations: 1.62 MB / 415.6 MB, free: 19.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.768e-05/0.1753, allocations: 22.69 kB / 415.6 MB, free: 19.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.1753, allocations: 5.625 kB / 415.6 MB, free: 19.43 MB / 330.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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 7.719e-05/0.1754, allocations: 136.8 kB / 415.7 MB, free: 19.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.1754, allocations: 26.36 kB / 415.8 MB, free: 19.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.1755, allocations: 31.11 kB / 415.8 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.1755, allocations: 1.438 kB / 415.8 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1755, allocations: 0.5625 kB / 415.8 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1755, allocations: 3.141 kB / 415.8 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.1756, allocations: 193.1 kB / 416 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1756, allocations: 1.438 kB / 416 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.841e-05/0.1757, allocations: 24.69 kB / 416 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1757, allocations: 2.078 kB / 416 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1757, allocations: 6.297 kB / 416 MB, free: 19.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1757, allocations: 1.469 kB / 416 MB, free: 19.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1757, allocations: 0 / 416 MB, free: 19.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.1759, allocations: 293.6 kB / 416.3 MB, free: 18.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.176, allocations: 29.25 kB / 416.3 MB, free: 18.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.176, allocations: 5.125 kB / 416.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.033e-05/0.1761, allocations: 6.953 kB / 416.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.1761, allocations: 6.016 kB / 416.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.1761, allocations: 3.5 kB / 416.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1762, allocations: 180.7 kB / 416.5 MB, free: 18.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1762, allocations: 1.125 kB / 416.5 MB, free: 18.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002205/0.1764, allocations: 58.86 kB / 416.6 MB, free: 18.78 MB / 330.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 7.636e-05/0.1765, allocations: 105.1 kB / 416.7 MB, free: 18.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003779/0.1769, allocations: 248.5 kB / 416.9 MB, free: 18.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1769, allocations: 1.156 kB / 416.9 MB, free: 18.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.673e-05/0.1769, allocations: 46.83 kB / 417 MB, free: 18.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.1772, allocations: 55.28 kB / 417 MB, free: 18.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.1778, allocations: 458 kB / 417.5 MB, free: 18.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.678e-05/0.1779, allocations: 142.5 kB / 417.6 MB, free: 18.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.1779, allocations: 21.75 kB / 417.7 MB, free: 18.12 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1779, allocations: 0.6562 kB / 417.7 MB, free: 18.12 MB / 330.7 MB Notification: Performance of Templates: time 0.004504/0.1824, allocations: 3.199 MB / 420.9 MB, free: 17.86 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.sim & ./Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.962203537113965]