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.0008787/0.0008787, 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.0008883/0.0008883, 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.9057/0.9057, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.0538/0.0538, allocations: 12.74 MB / 272.7 MB, free: 0.4961 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.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 9.22e-07/9.22e-07, allocations: 0 / 403.1 MB, free: 8.918 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.387e-05/1.479e-05, allocations: 5.234 kB / 403.1 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002701/0.002716, allocations: 2.545 MB / 405.6 MB, free: 6.355 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002498/0.005214, allocations: 2.711 MB / 408.3 MB, free: 3.629 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.005317, allocations: 11.88 kB / 408.3 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.005448, allocations: 43.58 kB / 408.4 MB, free: 3.574 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.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.0006742/0.006122, allocations: 394 kB / 408.8 MB, free: 3.188 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.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.0004584/0.006581, allocations: 445.5 kB / 409.2 MB, free: 2.758 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.006812, allocations: 294.5 kB / 409.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.006914, allocations: 20.59 kB / 409.5 MB, free: 2.449 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.007021, allocations: 139.7 kB / 409.6 MB, free: 2.312 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.007169, allocations: 99.67 kB / 409.7 MB, free: 2.215 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.00719, allocations: 12 kB / 409.7 MB, free: 2.203 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.881e-05/0.007239, allocations: 23.94 kB / 409.8 MB, free: 2.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.87e-05/0.007287, allocations: 43.77 kB / 409.8 MB, free: 2.137 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.755e-05/0.007345, allocations: 71.77 kB / 409.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.00755, allocations: 231.2 kB / 410.1 MB, free: 1.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.007552, allocations: 3.938 kB / 410.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.007553, allocations: 0 / 410.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.007557, allocations: 4 kB / 410.1 MB, free: 1.832 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004973/0.008054, allocations: 445 kB / 410.6 MB, free: 1.367 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.008087, allocations: 15.98 kB / 410.6 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.008188, allocations: 36.78 kB / 410.6 MB, free: 1.316 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.008676, allocations: 236.8 kB / 410.8 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.008689, allocations: 8.375 kB / 410.8 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.008714, allocations: 16.33 kB / 410.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.008857, allocations: 114.8 kB / 411 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.008869, allocations: 3.938 kB / 411 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.00888, allocations: 4 kB / 411 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.008885, allocations: 8 kB / 411 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.008988, allocations: 79.89 kB / 411.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.009505, allocations: 412.1 kB / 411.5 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.009648, allocations: 106.5 kB / 411.6 MB, free: 284 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.887e-05/0.009697, allocations: 44.83 kB / 411.6 MB, free: 236 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.009705, allocations: 0 / 411.6 MB, free: 236 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.009723, allocations: 38.56 kB / 411.7 MB, free: 188 kB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 6.81e-07/0.009723, allocations: 0 / 411.7 MB, free: 188 kB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002095/0.009933, allocations: 153.5 kB / 411.8 MB, free: 28 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1248/0.1348, allocations: 51.78 kB / 411.9 MB, free: 22.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.135, allocations: 246.9 kB / 412.1 MB, free: 21.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.135, allocations: 26.64 kB / 412.1 MB, free: 21.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.1351, allocations: 145.3 kB / 412.3 MB, free: 21.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.1351, allocations: 39.62 kB / 412.3 MB, free: 21.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.1351, allocations: 40.28 kB / 412.3 MB, free: 21.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.617e-05/0.1352, allocations: 329.4 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.655e-05/0.1352, allocations: 39.72 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.452e-05/0.1353, allocations: 86 kB / 412.8 MB, free: 21.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.1354, allocations: 135.4 kB / 412.9 MB, free: 21.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1354, allocations: 0 / 412.9 MB, free: 21.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001793/0.1356, allocations: 171.8 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1356, allocations: 7.391 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1356, allocations: 3.375 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1356, allocations: 5.156 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1358, allocations: 39.59 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.1358, allocations: 5.016 kB / 413.1 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.1358, allocations: 12.73 kB / 413.2 MB, free: 21.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1358, allocations: 9.656 kB / 413.2 MB, free: 21.31 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 5.821e-05/0.1359, allocations: 135.4 kB / 413.3 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.444e-05/0.1359, allocations: 21.48 kB / 413.3 MB, free: 21.17 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.136, allocations: 26.11 kB / 413.3 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.136, allocations: 5.828 kB / 413.3 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.136, allocations: 0 / 413.3 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.136, allocations: 1.578 kB / 413.3 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.1361, allocations: 179.6 kB / 413.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1361, allocations: 2.688 kB / 413.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.1362, allocations: 26.39 kB / 413.6 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1362, allocations: 0 / 413.6 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.1362, allocations: 1.281 kB / 413.6 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1362, allocations: 2.016 kB / 413.6 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1362, allocations: 5.25 kB / 413.6 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.1364, allocations: 263.3 kB / 413.8 MB, free: 20.81 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.1364, allocations: 37.48 kB / 413.9 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.1365, allocations: 3.781 kB / 413.9 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.1365, allocations: 5.828 kB / 413.9 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.1365, allocations: 9.062 kB / 413.9 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1365, allocations: 2.828 kB / 413.9 MB, free: 20.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.781e-05/0.1366, allocations: 176.5 kB / 414 MB, free: 20.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1366, allocations: 3.812 kB / 414.1 MB, free: 20.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001825/0.1368, allocations: 44.8 kB / 414.1 MB, free: 20.68 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 6.406e-05/0.1369, allocations: 98.36 kB / 414.2 MB, free: 20.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001396/0.137, allocations: 100.1 kB / 414.3 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.137, allocations: 0 / 414.3 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.556e-05/0.1371, allocations: 39.38 kB / 414.3 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.1373, allocations: 43.91 kB / 414.4 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004584/0.1378, allocations: 408.5 kB / 414.8 MB, free: 20.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.853e-05/0.1379, allocations: 130.8 kB / 414.9 MB, free: 20.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/0.1379, allocations: 24.77 kB / 414.9 MB, free: 20.17 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1379, allocations: 0 / 414.9 MB, free: 20.17 MB / 330.7 MB Notification: Performance of Templates: time 0.003027/0.1409, allocations: 2.4 MB / 417.3 MB, free: 20 MB / 330.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 > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.505177301820368]