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.001274/0.001274, allocations: 73.88 kB / 20.66 MB, free: 3.84 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.001374/0.001374, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.935/0.935, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.05563/0.05563, allocations: 12.76 MB / 273.8 MB, free: 100 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.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 1.122e-06/1.122e-06, allocations: 0 / 347.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133e-05/1.245e-05, allocations: 6.25 kB / 347.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002286/0.002299, allocations: 2.68 MB / 350.6 MB, free: 14.26 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.004948, allocations: 2.734 MB / 353.3 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.783e-05/0.005045, allocations: 11.88 kB / 353.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.005173, allocations: 35.64 kB / 353.4 MB, free: 11.47 MB / 282.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.0006758/0.005849, allocations: 401.8 kB / 353.8 MB, free: 11.07 MB / 282.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.0004817/0.006331, allocations: 430.6 kB / 354.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.006564, allocations: 298.5 kB / 354.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.517e-05/0.00665, allocations: 20.59 kB / 354.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.006761, allocations: 143.5 kB / 354.6 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.006921, allocations: 103.7 kB / 354.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.00694, allocations: 12 kB / 354.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.006985, allocations: 23.94 kB / 354.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.007031, allocations: 39.83 kB / 354.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.007083, allocations: 71.77 kB / 354.9 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.007267, allocations: 183.3 kB / 355.1 MB, free: 9.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-06/0.007269, allocations: 0 / 355.1 MB, free: 9.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.007269, allocations: 4 kB / 355.1 MB, free: 9.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.007273, allocations: 0 / 355.1 MB, free: 9.766 MB / 282.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.0004614/0.007734, allocations: 0.5345 MB / 355.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.007765, allocations: 15.98 kB / 355.6 MB, free: 9.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.00787, allocations: 36.8 kB / 355.7 MB, free: 9.145 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.008086, allocations: 239.6 kB / 355.9 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.008097, allocations: 12.38 kB / 355.9 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.008117, allocations: 12.38 kB / 355.9 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.133e-05/0.008208, allocations: 78.2 kB / 356 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.008221, allocations: 3.938 kB / 356 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.008229, allocations: 7.938 kB / 356 MB, free: 8.766 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.008234, allocations: 4 kB / 356 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.254e-05/0.008287, allocations: 36.56 kB / 356 MB, free: 8.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.008754, allocations: 423.8 kB / 356.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.712e-05/0.008841, allocations: 63.06 kB / 356.5 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.136e-05/0.008872, allocations: 35.66 kB / 356.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.00888, allocations: 0 / 356.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.0089, allocations: 41.38 kB / 356.6 MB, free: 8.121 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.008901, allocations: 0 / 356.6 MB, free: 8.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001414/0.009042, allocations: 93.48 kB / 356.7 MB, free: 8.023 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.882e-05/0.009061, allocations: 55.41 kB / 356.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.009197, allocations: 288.1 kB / 357 MB, free: 7.656 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.009208, allocations: 25.7 kB / 357.1 MB, free: 7.625 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.009279, allocations: 199 kB / 357.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.009301, allocations: 43.67 kB / 357.3 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.009342, allocations: 43.34 kB / 357.3 MB, free: 7.332 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.00945, allocations: 0.5001 MB / 357.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.2e-05/0.009472, allocations: 15.98 kB / 357.8 MB, free: 6.805 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/0.009521, allocations: 80.83 kB / 357.9 MB, free: 6.703 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.983e-05/0.0096, allocations: 97.97 kB / 358 MB, free: 6.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.009603, allocations: 4 kB / 358 MB, free: 6.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001278/0.009731, allocations: 136.2 kB / 358.2 MB, free: 6.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.009742, allocations: 8 kB / 358.2 MB, free: 6.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.009746, allocations: 0 / 358.2 MB, free: 6.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.009756, allocations: 4 kB / 358.2 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.009857, allocations: 39.92 kB / 358.2 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.009861, allocations: 3.938 kB / 358.2 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.009919, allocations: 15.89 kB / 358.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.009928, allocations: 12 kB / 358.2 MB, free: 6.359 MB / 282.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 6.516e-05/0.009993, allocations: 160.7 kB / 358.4 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.01002, allocations: 31.84 kB / 358.4 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.01005, allocations: 25.77 kB / 358.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.01006, allocations: 0 / 358.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.01006, allocations: 0 / 358.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.0101, allocations: 35.78 kB / 358.5 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.01012, allocations: 0 / 358.5 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.041e-05/0.01017, allocations: 0 / 358.5 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.01018, allocations: 7.984 kB / 358.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001457/0.01032, allocations: 204.8 kB / 358.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001754/0.0105, allocations: 382.8 kB / 359.1 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.744e-05/0.01053, allocations: 27.7 kB / 359.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.0106, allocations: 193.1 kB / 359.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of Backend: time 2.21e-07/0.0106, allocations: 0 / 359.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002663/0.01087, allocations: 137.3 kB / 359.4 MB, free: 5.125 MB / 282.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal/mol: Unit not found Error: Error parsing unit %: Parse error Notification: Performance of SimCode: time 0.001135/0.012, allocations: 1.17 MB / 360.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of Templates: time 0.003802/0.01581, allocations: 2.627 MB / 363.2 MB, free: 1.324 MB / 282.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.5202571260742843]