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.001836/0.001836, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.002118/0.002118, allocations: 169.9 kB / 22.45 MB, free: 2.105 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 1.698/1.698, allocations: 177.1 MB / 202.8 MB, free: 5.594 MB / 186.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.1265/0.1265, allocations: 12.74 MB / 271.9 MB, free: 352 kB / 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: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 403.1 MB, free: 8.129 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.2e-05, allocations: 2.281 kB / 403.1 MB, free: 8.125 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.004999/0.005031, allocations: 2.743 MB / 405.8 MB, free: 5.371 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005615/0.01065, allocations: 2.742 MB / 408.6 MB, free: 2.613 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.01092, allocations: 11.88 kB / 408.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.01114, allocations: 51.5 kB / 408.6 MB, free: 2.551 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.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.001483/0.01263, allocations: 417.7 kB / 409 MB, free: 2.141 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.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.001251/0.01388, allocations: 444.2 kB / 409.5 MB, free: 1.711 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005487/0.01443, allocations: 350.1 kB / 409.8 MB, free: 1.367 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.01459, allocations: 36.91 kB / 409.8 MB, free: 1.332 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.01483, allocations: 167.6 kB / 410 MB, free: 1.168 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.01508, allocations: 107.7 kB / 410.1 MB, free: 1.062 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.01512, allocations: 16 kB / 410.1 MB, free: 1.047 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.256e-05/0.0152, allocations: 23.98 kB / 410.1 MB, free: 1.023 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.0153, allocations: 47.77 kB / 410.2 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.01543, allocations: 87.77 kB / 410.3 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.0159, allocations: 282.9 kB / 410.6 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.0159, allocations: 0 / 410.6 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.0159, allocations: 4 kB / 410.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.01591, allocations: 0 / 410.6 MB, free: 0.6094 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0009133/0.01682, allocations: 480.8 kB / 411 MB, free: 112 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.01687, allocations: 11.98 kB / 411 MB, free: 100 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.01705, allocations: 40.75 kB / 411.1 MB, free: 60 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1621/0.1791, allocations: 243.8 kB / 411.3 MB, free: 22.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.1791, allocations: 11.56 kB / 411.3 MB, free: 22.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.694e-05/0.1792, allocations: 18.94 kB / 411.3 MB, free: 22.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.1795, allocations: 142.5 kB / 411.5 MB, free: 22.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1795, allocations: 0 / 411.5 MB, free: 22.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.1795, allocations: 6.188 kB / 411.5 MB, free: 22.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1795, allocations: 7.984 kB / 411.5 MB, free: 22.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.1797, allocations: 92.11 kB / 411.6 MB, free: 22.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009592/0.1807, allocations: 471.4 kB / 412.1 MB, free: 21.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.1809, allocations: 108.5 kB / 412.2 MB, free: 21.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.775e-05/0.1809, allocations: 46.33 kB / 412.2 MB, free: 21.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.1809, allocations: 1.156 kB / 412.2 MB, free: 21.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.181, allocations: 33.69 kB / 412.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.181, allocations: 0 / 412.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003131/0.1813, allocations: 159.2 kB / 412.4 MB, free: 21.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.1813, allocations: 55.17 kB / 412.4 MB, free: 21.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.1815, allocations: 253.6 kB / 412.7 MB, free: 21.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.1816, allocations: 26.95 kB / 412.7 MB, free: 21.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.912e-05/0.1816, allocations: 161.5 kB / 412.9 MB, free: 21.36 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.1817, allocations: 41.91 kB / 412.9 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.1817, allocations: 38.64 kB / 413 MB, free: 21.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.337e-05/0.1818, allocations: 331.1 kB / 413.3 MB, free: 20.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.249e-05/0.1819, allocations: 42.94 kB / 413.3 MB, free: 20.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.737e-05/0.1819, allocations: 86.14 kB / 413.4 MB, free: 20.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.1821, allocations: 129.5 kB / 413.5 MB, free: 20.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1821, allocations: 4.312 kB / 413.5 MB, free: 20.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002426/0.1824, allocations: 177.4 kB / 413.7 MB, free: 20.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1824, allocations: 5.797 kB / 413.7 MB, free: 20.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.1824, allocations: 4.484 kB / 413.7 MB, free: 20.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.1824, allocations: 6.781 kB / 413.7 MB, free: 20.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.1826, allocations: 40.34 kB / 413.8 MB, free: 20.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1826, allocations: 5.969 kB / 413.8 MB, free: 20.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1827, allocations: 15.97 kB / 413.8 MB, free: 20.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.1827, allocations: 8.906 kB / 413.8 MB, free: 20.71 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 (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.958e-05/0.1828, allocations: 134.5 kB / 413.9 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.1828, allocations: 22.08 kB / 414 MB, free: 20.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.592e-05/0.1829, allocations: 26.98 kB / 414 MB, free: 20.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1829, allocations: 5.031 kB / 414 MB, free: 20.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1829, allocations: 2.031 kB / 414 MB, free: 20.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1829, allocations: 0.7031 kB / 414 MB, free: 20.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.1831, allocations: 193.7 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1831, allocations: 6.656 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1833, allocations: 18.11 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1833, allocations: 1.828 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1833, allocations: 1.219 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.1833, allocations: 1.469 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1833, allocations: 3.938 kB / 414.2 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.1836, allocations: 267.7 kB / 414.5 MB, free: 20.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.857e-05/0.1836, allocations: 35.91 kB / 414.5 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.1837, allocations: 5.375 kB / 414.5 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.1838, allocations: 5.812 kB / 414.5 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.1838, allocations: 9.797 kB / 414.5 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1838, allocations: 2.219 kB / 414.5 MB, free: 20.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001743/0.184, allocations: 184 kB / 414.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.184, allocations: 0 / 414.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002995/0.1843, allocations: 58.55 kB / 414.8 MB, free: 20.06 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 (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.0001185/0.1844, allocations: 102 kB / 414.9 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002668/0.1846, allocations: 95.16 kB / 415 MB, free: 19.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1847, allocations: 0 / 415 MB, free: 19.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.435e-05/0.1847, allocations: 38.97 kB / 415 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.1852, allocations: 55.3 kB / 415 MB, free: 19.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008622/0.1861, allocations: 415.6 kB / 415.5 MB, free: 19.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.1862, allocations: 142.2 kB / 415.6 MB, free: 19.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1863, allocations: 28.42 kB / 415.6 MB, free: 19.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.1864, allocations: 20.89 kB / 415.6 MB, free: 19.55 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1864, allocations: 0 / 415.6 MB, free: 19.55 MB / 330.7 MB Notification: Performance of Templates: time 0.007108/0.1935, allocations: 2.318 MB / 418 MB, free: 19.25 MB / 330.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: 5.6048216708004475]