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.001036/0.001036, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001086/0.001086, allocations: 177 kB / 23.36 MB, free: 1.133 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 1.015/1.015, allocations: 177.2 MB / 203.8 MB, free: 5.484 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.06604/0.06604, allocations: 12.75 MB / 273 MB, free: 176 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.903e-06/1.903e-06, allocations: 0 / 293.9 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.838e-05/2.029e-05, allocations: 2.312 kB / 293.9 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003469/0.003489, allocations: 2.937 MB / 296.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003474/0.006963, allocations: 2.827 MB / 299.7 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.007111, allocations: 13.47 kB / 299.7 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.007228, allocations: 48.38 kB / 299.7 MB, free: 8.203 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.0009609/0.008188, allocations: 410.5 kB / 300.1 MB, free: 7.973 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.0008747/0.009063, allocations: 413.9 kB / 300.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.009429, allocations: 346.2 kB / 300.9 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.745e-05/0.009527, allocations: 41.67 kB / 300.9 MB, free: 7.574 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.009703, allocations: 168.8 kB / 301.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.009878, allocations: 117.1 kB / 301.2 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.009904, allocations: 16.66 kB / 301.2 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.962e-05/0.009963, allocations: 22.44 kB / 301.2 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.761e-05/0.01001, allocations: 51.03 kB / 301.3 MB, free: 7.441 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.833e-05/0.01008, allocations: 84.64 kB / 301.4 MB, free: 7.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.01032, allocations: 210.4 kB / 301.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-06/0.01032, allocations: 0 / 301.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.01032, allocations: 4.844 kB / 301.6 MB, free: 7.316 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.01032, allocations: 0 / 301.6 MB, free: 7.316 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.000394/0.01072, allocations: 460.9 kB / 302 MB, free: 6.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.588e-05/0.01074, allocations: 13.58 kB / 302.1 MB, free: 6.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.01085, allocations: 36.66 kB / 302.1 MB, free: 6.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.01107, allocations: 248.3 kB / 302.3 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.01108, allocations: 11.84 kB / 302.3 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.0111, allocations: 19.38 kB / 302.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.01122, allocations: 100.5 kB / 302.5 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.01123, allocations: 4.875 kB / 302.5 MB, free: 6.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.01124, allocations: 6.75 kB / 302.5 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.01124, allocations: 2.75 kB / 302.5 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.719e-05/0.0113, allocations: 44.06 kB / 302.5 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004131/0.01171, allocations: 350.4 kB / 302.9 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.356e-05/0.01179, allocations: 105.8 kB / 303 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.555e-05/0.01182, allocations: 24.77 kB / 303 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.01183, allocations: 2.75 kB / 303 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.01184, allocations: 39.92 kB / 303 MB, free: 6.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.12e-07/0.01184, allocations: 0 / 303 MB, free: 6.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000113/0.01195, allocations: 77.83 kB / 303.1 MB, free: 6.262 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.31e-05/0.01197, allocations: 52.78 kB / 303.2 MB, free: 6.199 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.01209, allocations: 239.4 kB / 303.4 MB, free: 6.047 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.556e-06/0.01209, allocations: 29.7 kB / 303.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.01214, allocations: 144 kB / 303.6 MB, free: 5.891 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.01216, allocations: 39.75 kB / 303.6 MB, free: 5.859 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.0122, allocations: 38.55 kB / 303.6 MB, free: 5.832 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.01224, allocations: 334.2 kB / 304 MB, free: 5.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.01226, allocations: 15.61 kB / 304 MB, free: 5.504 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.961e-05/0.0123, allocations: 70.83 kB / 304 MB, free: 5.438 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.096e-05/0.01237, allocations: 87.31 kB / 304.1 MB, free: 5.375 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01237, allocations: 0 / 304.1 MB, free: 5.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001104/0.01248, allocations: 109.3 kB / 304.2 MB, free: 5.324 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.01249, allocations: 9.969 kB / 304.2 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.0125, allocations: 1.75 kB / 304.2 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.248e-06/0.01251, allocations: 3.5 kB / 304.3 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.01267, allocations: 49.16 kB / 304.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.596e-06/0.01268, allocations: 2.312 kB / 304.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.653e-05/0.01273, allocations: 17.8 kB / 304.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.01274, allocations: 5.328 kB / 304.3 MB, free: 5.305 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 4.791e-05/0.01279, allocations: 127.3 kB / 304.4 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.01282, allocations: 21.78 kB / 304.5 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/0.01285, allocations: 27.19 kB / 304.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.01285, allocations: 1.094 kB / 304.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.01285, allocations: 1.828 kB / 304.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.01286, allocations: 0.6562 kB / 304.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.01298, allocations: 122.8 kB / 304.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01299, allocations: 1.438 kB / 304.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.756e-05/0.01308, allocations: 26.44 kB / 304.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.01308, allocations: 7.875 kB / 304.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.01309, allocations: 1.609 kB / 304.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.01309, allocations: 0.8438 kB / 304.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01309, allocations: 4.703 kB / 304.7 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.01323, allocations: 230.8 kB / 304.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.01327, allocations: 30.88 kB / 304.9 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.01329, allocations: 2.406 kB / 304.9 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.979e-05/0.01334, allocations: 5.25 kB / 304.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.01335, allocations: 5.656 kB / 304.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.01335, allocations: 1.844 kB / 304.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.417e-05/0.01342, allocations: 80.31 kB / 305 MB, free: 4.809 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01342, allocations: 0 / 305 MB, free: 4.809 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000163/0.01358, allocations: 53.14 kB / 305.1 MB, free: 4.797 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 4.732e-05/0.01363, allocations: 76.45 kB / 305.1 MB, free: 4.727 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.174e-05/0.01372, allocations: 66.48 kB / 305.2 MB, free: 4.707 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.01372, allocations: 2.312 kB / 305.2 MB, free: 4.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.51e-05/0.01375, allocations: 26.08 kB / 305.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.01394, allocations: 52.23 kB / 305.3 MB, free: 4.68 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.0009511/0.01489, allocations: 477 kB / 305.7 MB, free: 4.359 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.717e-05/0.01494, allocations: 83.09 kB / 305.8 MB, free: 4.277 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.895e-05/0.01501, allocations: 20.06 kB / 305.8 MB, free: 4.266 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.567e-05/0.01511, allocations: 89.53 kB / 305.9 MB, free: 4.211 MB / 266.7 MB Notification: Performance of SimCode: time 3.11e-07/0.01511, allocations: 4 kB / 305.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of Templates: time 0.003852/0.01896, allocations: 2.595 MB / 308.5 MB, free: 2.348 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7429159521125257]