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.000999/0.000999, 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.001357/0.001357, allocations: 174.3 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.9408/0.9408, allocations: 177.1 MB / 203.5 MB, free: 5.758 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.05486/0.05486, 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_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: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 403.2 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.576e-05, allocations: 2.281 kB / 403.2 MB, free: 8.781 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.002445/0.002461, allocations: 2.709 MB / 405.9 MB, free: 6.055 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.005228, allocations: 2.75 MB / 408.7 MB, free: 3.289 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.005347, allocations: 15.88 kB / 408.7 MB, free: 3.273 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.005483, allocations: 47.56 kB / 408.7 MB, free: 3.227 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_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.0007422/0.006225, allocations: 413.7 kB / 409.1 MB, free: 2.82 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_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.0005304/0.006755, allocations: 444.2 kB / 409.6 MB, free: 2.391 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.007022, allocations: 334.3 kB / 409.9 MB, free: 2.062 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.007131, allocations: 44.78 kB / 409.9 MB, free: 2.023 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.007256, allocations: 159.6 kB / 410.1 MB, free: 1.867 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.007439, allocations: 111.7 kB / 410.2 MB, free: 1.758 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.007461, allocations: 16 kB / 410.2 MB, free: 1.742 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.276e-05/0.007554, allocations: 20 kB / 410.2 MB, free: 1.723 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.007604, allocations: 63.69 kB / 410.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.393e-05/0.007668, allocations: 75.77 kB / 410.4 MB, free: 1.586 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.0079, allocations: 259.1 kB / 410.6 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.007903, allocations: 3.984 kB / 410.6 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.007904, allocations: 4 kB / 410.6 MB, free: 1.324 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.007907, allocations: 0 / 410.6 MB, free: 1.324 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.0005201/0.008428, allocations: 483.4 kB / 411.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.008467, allocations: 15.98 kB / 411.1 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.008577, allocations: 32.75 kB / 411.1 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.008851, allocations: 252.6 kB / 411.4 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.008863, allocations: 12.38 kB / 411.4 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.008889, allocations: 16.38 kB / 411.4 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.009053, allocations: 130.7 kB / 411.5 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.009065, allocations: 3.938 kB / 411.5 MB, free: 348 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.009079, allocations: 8 kB / 411.6 MB, free: 340 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.009084, allocations: 4 kB / 411.6 MB, free: 336 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.009205, allocations: 91.92 kB / 411.6 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/0.1376, allocations: 456.7 kB / 412.1 MB, free: 21.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.1378, allocations: 113.8 kB / 412.2 MB, free: 21.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.539e-05/0.1379, allocations: 49.41 kB / 412.3 MB, free: 21.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.1379, allocations: 2.188 kB / 412.3 MB, free: 21.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.293e-05/0.1379, allocations: 33.03 kB / 412.3 MB, free: 21.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.1379, allocations: 3.594 kB / 412.3 MB, free: 21.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002415/0.1381, allocations: 169.1 kB / 412.5 MB, free: 21.69 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.949e-05/0.1382, allocations: 52.5 kB / 412.5 MB, free: 21.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.1383, allocations: 264 kB / 412.8 MB, free: 21.53 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.1383, allocations: 27.08 kB / 412.8 MB, free: 21.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.1384, allocations: 156.1 kB / 412.9 MB, free: 21.4 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.1384, allocations: 41.28 kB / 413 MB, free: 21.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.1385, allocations: 39.48 kB / 413 MB, free: 21.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.492e-05/0.1385, allocations: 331.7 kB / 413.3 MB, free: 21.03 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.218e-05/0.1385, allocations: 45.47 kB / 413.4 MB, free: 21.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.38e-05/0.1386, allocations: 85.8 kB / 413.5 MB, free: 20.95 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.1387, allocations: 136.8 kB / 413.6 MB, free: 20.87 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1387, allocations: 6.875 kB / 413.6 MB, free: 20.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001775/0.1389, allocations: 190.6 kB / 413.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1389, allocations: 7.844 kB / 413.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1389, allocations: 6.156 kB / 413.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1389, allocations: 1.969 kB / 413.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.1391, allocations: 36.44 kB / 413.9 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1391, allocations: 6.062 kB / 413.9 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.803e-05/0.1391, allocations: 18.28 kB / 413.9 MB, free: 20.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.1391, allocations: 5.719 kB / 413.9 MB, free: 20.78 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 (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 6.582e-05/0.1392, allocations: 140 kB / 414 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/0.1392, allocations: 21.73 kB / 414 MB, free: 20.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.1393, allocations: 27.16 kB / 414.1 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1393, allocations: 2.062 kB / 414.1 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.1393, allocations: 3.938 kB / 414.1 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1393, allocations: 0.9375 kB / 414.1 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.1394, allocations: 199 kB / 414.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1394, allocations: 0 / 414.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-05/0.1395, allocations: 27.98 kB / 414.3 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1395, allocations: 2.234 kB / 414.3 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.1395, allocations: 4.703 kB / 414.3 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1395, allocations: 3.812 kB / 414.3 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1395, allocations: 0.7969 kB / 414.3 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.1397, allocations: 284.8 kB / 414.6 MB, free: 20.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.1398, allocations: 36.22 kB / 414.6 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1398, allocations: 1.344 kB / 414.6 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.599e-05/0.1398, allocations: 5.891 kB / 414.6 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.1398, allocations: 6.266 kB / 414.6 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1398, allocations: 2.719 kB / 414.6 MB, free: 20.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.18e-05/0.1399, allocations: 181.1 kB / 414.8 MB, free: 20.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1399, allocations: 1.281 kB / 414.8 MB, free: 20.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001874/0.1401, allocations: 50.83 kB / 414.9 MB, free: 20.13 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 5.769e-05/0.1402, allocations: 103.5 kB / 415 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.1403, allocations: 105.1 kB / 415.1 MB, free: 20 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.1403, allocations: 1.312 kB / 415.1 MB, free: 20 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.012e-05/0.1404, allocations: 41.84 kB / 415.1 MB, free: 19.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.1406, allocations: 61.52 kB / 415.2 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004727/0.1411, allocations: 441.8 kB / 415.6 MB, free: 19.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.862e-05/0.1412, allocations: 142.6 kB / 415.7 MB, free: 19.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.001e-05/0.1412, allocations: 22.55 kB / 415.8 MB, free: 19.59 MB / 330.7 MB Notification: Performance of SimCode: time 4.5e-07/0.1412, allocations: 3.875 kB / 415.8 MB, free: 19.59 MB / 330.7 MB Notification: Performance of Templates: time 0.003209/0.1445, allocations: 2.692 MB / 418.5 MB, free: 19.38 MB / 330.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 > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.7442000028677285]