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.0008355/0.0008355, allocations: 80.81 kB / 19.94 MB, free: 4.539 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.0009308/0.0009308, allocations: 177 kB / 23.36 MB, free: 1.125 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.9516/0.9516, allocations: 177.1 MB / 203.8 MB, free: 5.469 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.06316/0.06316, allocations: 12.76 MB / 273 MB, free: 160 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.683e-06/1.683e-06, allocations: 1.188 kB / 293.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.117e-05, allocations: 3.859 kB / 293.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.00321/0.003231, allocations: 2.897 MB / 296.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003857/0.007088, allocations: 2.824 MB / 299.6 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.007299, allocations: 13.41 kB / 299.6 MB, free: 8.312 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.007495, allocations: 48.47 kB / 299.6 MB, free: 8.281 MB / 266.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.001336/0.008832, allocations: 433.3 kB / 300.1 MB, free: 8.055 MB / 266.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.0008516/0.009683, allocations: 439.2 kB / 300.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.01001, allocations: 339.5 kB / 300.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.01013, allocations: 45.48 kB / 300.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.0103, allocations: 165.6 kB / 301 MB, free: 7.598 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.0105, allocations: 115.3 kB / 301.2 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.01053, allocations: 20.5 kB / 301.2 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.495e-05/0.0106, allocations: 25.81 kB / 301.2 MB, free: 7.551 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.165e-05/0.01066, allocations: 52.22 kB / 301.2 MB, free: 7.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.657e-05/0.01074, allocations: 82.97 kB / 301.3 MB, free: 7.488 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.01107, allocations: 211.2 kB / 301.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.01107, allocations: 0 / 301.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01107, allocations: 0 / 301.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.01108, allocations: 0.6875 kB / 301.5 MB, free: 7.398 MB / 266.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.0005214/0.0116, allocations: 470.9 kB / 302 MB, free: 7.027 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.01163, allocations: 12.36 kB / 302 MB, free: 7.023 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.01175, allocations: 36.16 kB / 302 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.01201, allocations: 240.5 kB / 302.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.01203, allocations: 15.88 kB / 302.3 MB, free: 6.828 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.01205, allocations: 15.03 kB / 302.3 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.01219, allocations: 105.2 kB / 302.4 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.0122, allocations: 7.922 kB / 302.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.01221, allocations: 10.14 kB / 302.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.01221, allocations: 3.531 kB / 302.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.924e-05/0.01227, allocations: 36.67 kB / 302.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004763/0.01275, allocations: 346.3 kB / 302.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.184e-05/0.01284, allocations: 111.2 kB / 302.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.61e-05/0.01287, allocations: 24.91 kB / 302.9 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.01288, allocations: 1.406 kB / 302.9 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.01289, allocations: 40.34 kB / 303 MB, free: 6.379 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 8.82e-07/0.01289, allocations: 0 / 303 MB, free: 6.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001287/0.01302, allocations: 79.77 kB / 303.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.874e-05/0.01304, allocations: 52.78 kB / 303.1 MB, free: 6.277 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.01315, allocations: 236.3 kB / 303.3 MB, free: 6.125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-06/0.01316, allocations: 31.08 kB / 303.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.983e-05/0.0132, allocations: 146.1 kB / 303.5 MB, free: 5.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.01321, allocations: 35.77 kB / 303.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.01325, allocations: 42.62 kB / 303.6 MB, free: 5.906 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.573e-05/0.01329, allocations: 332.3 kB / 303.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.214e-05/0.01331, allocations: 16.12 kB / 303.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.091e-05/0.01335, allocations: 62.22 kB / 304 MB, free: 5.523 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.549e-05/0.01342, allocations: 90.73 kB / 304.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01343, allocations: 0 / 304.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000109/0.01354, allocations: 111.9 kB / 304.2 MB, free: 5.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.01355, allocations: 7.844 kB / 304.2 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.01355, allocations: 1.375 kB / 304.2 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.01356, allocations: 6.906 kB / 304.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.01367, allocations: 39.86 kB / 304.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.01367, allocations: 2.531 kB / 304.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.701e-05/0.01373, allocations: 18.14 kB / 304.3 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.01374, allocations: 4.156 kB / 304.3 MB, free: 5.383 MB / 266.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.138e-05/0.01379, allocations: 125.1 kB / 304.4 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.01381, allocations: 17.86 kB / 304.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.01385, allocations: 29.31 kB / 304.4 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01385, allocations: 1.75 kB / 304.4 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.01385, allocations: 1.312 kB / 304.4 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.01386, allocations: 4.656 kB / 304.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.01399, allocations: 123.2 kB / 304.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01399, allocations: 1.094 kB / 304.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/0.01405, allocations: 17.52 kB / 304.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.01405, allocations: 1.438 kB / 304.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.01407, allocations: 3.938 kB / 304.6 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01407, allocations: 2.109 kB / 304.6 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.01407, allocations: 0 / 304.6 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.01421, allocations: 230.1 kB / 304.8 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.003e-05/0.01425, allocations: 26.12 kB / 304.8 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.01428, allocations: 10.03 kB / 304.8 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.366e-05/0.01433, allocations: 2.219 kB / 304.8 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.01434, allocations: 5.953 kB / 304.9 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.01435, allocations: 5.156 kB / 304.9 MB, free: 4.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.077e-05/0.01442, allocations: 80.22 kB / 304.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01442, allocations: 0 / 304.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001705/0.01459, allocations: 50.45 kB / 305 MB, free: 4.883 MB / 266.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 7.387e-05/0.01466, allocations: 79.55 kB / 305.1 MB, free: 4.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.314e-05/0.01476, allocations: 65.08 kB / 305.1 MB, free: 4.789 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.01476, allocations: 2.75 kB / 305.1 MB, free: 4.789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.5e-05/0.01479, allocations: 30.7 kB / 305.2 MB, free: 4.773 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.01501, allocations: 53.3 kB / 305.2 MB, free: 4.754 MB / 266.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: created linear, non-linear and system jacobian parts: time 0.0009902/0.016, allocations: 472.7 kB / 305.7 MB, free: 4.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.478e-05/0.01604, allocations: 85 kB / 305.8 MB, free: 4.375 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.677e-05/0.01611, allocations: 19.89 kB / 305.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.183e-05/0.0162, allocations: 87.62 kB / 305.9 MB, free: 4.312 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.0162, allocations: 1.062 kB / 305.9 MB, free: 4.312 MB / 266.7 MB Notification: Performance of Templates: time 0.004004/0.02021, allocations: 2.54 MB / 308.4 MB, free: 2.477 MB / 266.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.6797160082496703]