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.001201/0.001201, allocations: 77.95 kB / 20.66 MB, free: 3.836 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: 165.4 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.8803/0.8803, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.05719/0.05719, allocations: 12.76 MB / 273.8 MB, free: 120 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.412e-06/1.412e-06, allocations: 0 / 347.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.37e-05/1.511e-05, allocations: 13.34 kB / 347.9 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003295/0.00331, allocations: 2.883 MB / 350.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.006176, allocations: 2.769 MB / 353.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.006317, allocations: 15.88 kB / 353.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.006462, allocations: 51.45 kB / 353.7 MB, free: 11.2 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.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.0008558/0.007318, allocations: 417.7 kB / 354.1 MB, free: 10.79 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.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.0006341/0.007952, allocations: 442.6 kB / 354.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.008267, allocations: 342.2 kB / 354.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.00838, allocations: 44.86 kB / 354.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.008523, allocations: 167.5 kB / 355 MB, free: 9.812 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.008685, allocations: 119.6 kB / 355.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.008708, allocations: 16 kB / 355.2 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.819e-05/0.008756, allocations: 20 kB / 355.2 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.266e-05/0.008808, allocations: 55.77 kB / 355.2 MB, free: 9.605 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.008876, allocations: 79.78 kB / 355.3 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.009087, allocations: 215.2 kB / 355.5 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.724e-06/0.009089, allocations: 0 / 355.5 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.00909, allocations: 0 / 355.5 MB, free: 9.316 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.009094, allocations: 0 / 355.5 MB, free: 9.316 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0005046/0.009598, allocations: 0.5733 MB / 356.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.009628, allocations: 15.98 kB / 356.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.009741, allocations: 52.73 kB / 356.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.009974, allocations: 251.6 kB / 356.4 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.009986, allocations: 12.38 kB / 356.4 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.01001, allocations: 16.38 kB / 356.4 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.01012, allocations: 95.53 kB / 356.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.01013, allocations: 7.891 kB / 356.5 MB, free: 8.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.01014, allocations: 11.94 kB / 356.6 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.01015, allocations: 4 kB / 356.6 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.841e-05/0.01021, allocations: 43.81 kB / 356.6 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005173/0.01073, allocations: 479.5 kB / 357.1 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.598e-05/0.01081, allocations: 70.94 kB / 357.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.77e-05/0.01084, allocations: 27.67 kB / 357.2 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-06/0.01085, allocations: 0 / 357.2 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.01087, allocations: 41.38 kB / 357.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.01087, allocations: 0 / 357.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001456/0.01101, allocations: 101.6 kB / 357.3 MB, free: 7.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.872e-05/0.01103, allocations: 51.41 kB / 357.4 MB, free: 7.348 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.01118, allocations: 300.1 kB / 357.7 MB, free: 7.035 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.01119, allocations: 25.7 kB / 357.7 MB, free: 7.004 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.01127, allocations: 211 kB / 357.9 MB, free: 6.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/0.01129, allocations: 39.62 kB / 357.9 MB, free: 6.754 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.01133, allocations: 47.34 kB / 358 MB, free: 6.699 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.01144, allocations: 0.5039 MB / 358.5 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.236e-05/0.01146, allocations: 15.98 kB / 358.5 MB, free: 6.168 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.728e-05/0.01151, allocations: 74.08 kB / 358.6 MB, free: 6.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.233e-05/0.01159, allocations: 102 kB / 358.7 MB, free: 5.945 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01159, allocations: 0 / 358.7 MB, free: 5.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000128/0.01172, allocations: 140.4 kB / 358.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.01173, allocations: 6.5 kB / 358.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.01174, allocations: 4 kB / 358.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.01175, allocations: 0 / 358.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.255e-05/0.01184, allocations: 39.92 kB / 358.8 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.01184, allocations: 4.156 kB / 358.8 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.88e-05/0.0119, allocations: 23.84 kB / 358.9 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.01191, allocations: 8 kB / 358.9 MB, free: 5.723 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 7.073e-05/0.01198, allocations: 164.5 kB / 359 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.01201, allocations: 31.8 kB / 359.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.01204, allocations: 25.77 kB / 359.1 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.01205, allocations: 0 / 359.1 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.01205, allocations: 0 / 359.1 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.01208, allocations: 31.78 kB / 359.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.01211, allocations: 4 kB / 359.1 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.394e-05/0.01216, allocations: 11.98 kB / 359.1 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.01217, allocations: 0 / 359.1 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001476/0.01232, allocations: 208.7 kB / 359.3 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001746/0.01249, allocations: 370.9 kB / 359.7 MB, free: 4.852 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.086e-05/0.01252, allocations: 27.66 kB / 359.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.988e-05/0.0126, allocations: 193.1 kB / 359.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of Backend: time 2.2e-07/0.0126, allocations: 0 / 359.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.01288, allocations: 144.1 kB / 360.1 MB, free: 4.48 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.001203/0.01408, allocations: 1.222 MB / 361.3 MB, free: 3.211 MB / 282.7 MB Notification: Performance of Templates: time 0.004069/0.01815, allocations: 2.8 MB / 364.1 MB, free: 468 kB / 282.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: 2.523696616292]