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.0009471/0.0009471, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0009231/0.0009231, allocations: 169 kB / 23.02 MB, free: 1.543 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.001/1.001, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.0642/0.0642, allocations: 12.76 MB / 272.7 MB, free: 300 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.944e-06/1.944e-06, allocations: 0 / 346.7 MB, free: 1.262 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.858e-05/4.053e-05, allocations: 6.25 kB / 346.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003271/0.003311, allocations: 2.917 MB / 349.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.007203, allocations: 2.855 MB / 352.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.007407, allocations: 15.81 kB / 352.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.007605, allocations: 43.58 kB / 352.5 MB, free: 11.39 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.001211/0.008816, allocations: 417.7 kB / 352.9 MB, free: 10.98 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.0008866/0.009703, allocations: 446.5 kB / 353.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003922/0.01009, allocations: 346.2 kB / 353.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.01024, allocations: 40.84 kB / 353.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.01042, allocations: 167.6 kB / 353.9 MB, free: 10 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.01065, allocations: 115.7 kB / 354 MB, free: 9.891 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.01068, allocations: 16 kB / 354 MB, free: 9.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.804e-05/0.01075, allocations: 20 kB / 354.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.651e-05/0.01081, allocations: 51.75 kB / 354.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.002e-05/0.01089, allocations: 83.77 kB / 354.2 MB, free: 9.723 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.01124, allocations: 215.1 kB / 354.4 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.01125, allocations: 0 / 354.4 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.01125, allocations: 0 / 354.4 MB, free: 9.512 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.01125, allocations: 0 / 354.4 MB, free: 9.512 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.0007061/0.01196, allocations: 0.5812 MB / 355 MB, free: 8.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.01201, allocations: 11.98 kB / 355 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.01218, allocations: 48.73 kB / 355 MB, free: 8.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.01253, allocations: 255.6 kB / 355.3 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.01254, allocations: 8.375 kB / 355.3 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.01258, allocations: 20.38 kB / 355.3 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.01275, allocations: 103.5 kB / 355.4 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.01276, allocations: 7.891 kB / 355.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.01278, allocations: 8 kB / 355.4 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.01279, allocations: 4 kB / 355.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.666e-05/0.01289, allocations: 59.75 kB / 355.5 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007707/0.01366, allocations: 0.5106 MB / 356 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.0138, allocations: 75 kB / 356.1 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.84e-05/0.01385, allocations: 23.69 kB / 356.1 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.01387, allocations: 7.984 kB / 356.1 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.01389, allocations: 37.38 kB / 356.1 MB, free: 7.633 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.635e-06/0.01389, allocations: 4.094 kB / 356.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002466/0.01414, allocations: 105.5 kB / 356.2 MB, free: 7.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.01418, allocations: 55.34 kB / 356.3 MB, free: 7.453 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003214/0.0145, allocations: 300.2 kB / 356.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.01452, allocations: 33.64 kB / 356.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.01462, allocations: 203 kB / 356.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.01464, allocations: 43.62 kB / 356.9 MB, free: 6.855 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.01469, allocations: 43.36 kB / 356.9 MB, free: 6.805 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.01483, allocations: 0.504 MB / 357.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.851e-05/0.01487, allocations: 16 kB / 357.4 MB, free: 6.273 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.891e-05/0.01494, allocations: 78.09 kB / 357.5 MB, free: 6.172 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.01505, allocations: 110 kB / 357.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01505, allocations: 3.938 kB / 357.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001737/0.01523, allocations: 148.6 kB / 357.8 MB, free: 5.887 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.01524, allocations: 4 kB / 357.8 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.01525, allocations: 4.156 kB / 357.8 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.01527, allocations: 4 kB / 357.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.0154, allocations: 31.98 kB / 357.8 MB, free: 5.844 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.01541, allocations: 7.938 kB / 357.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.036e-05/0.01547, allocations: 19.84 kB / 357.8 MB, free: 5.816 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.01548, allocations: 4 kB / 357.8 MB, free: 5.812 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 9.314e-05/0.01557, allocations: 172.5 kB / 358 MB, free: 5.633 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.0156, allocations: 27.86 kB / 358 MB, free: 5.605 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.01564, allocations: 21.78 kB / 358.1 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.01564, allocations: 4 kB / 358.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.01565, allocations: 4 kB / 358.1 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.01565, allocations: 3.984 kB / 358.1 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.01599, allocations: 200.5 kB / 358.3 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.016, allocations: 0 / 358.3 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.761e-05/0.01607, allocations: 15.94 kB / 358.3 MB, free: 5.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.01608, allocations: 4 kB / 358.3 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.01609, allocations: 0 / 358.3 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01609, allocations: 0 / 358.3 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.0161, allocations: 0 / 358.3 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.01633, allocations: 263.7 kB / 358.5 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.01638, allocations: 39.8 kB / 358.6 MB, free: 5.004 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.0164, allocations: 8 kB / 358.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.455e-05/0.01646, allocations: 3.938 kB / 358.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.203e-05/0.01648, allocations: 7.984 kB / 358.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.01648, allocations: 0 / 358.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001101/0.01659, allocations: 201.1 kB / 358.8 MB, free: 4.789 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01659, allocations: 4 kB / 358.8 MB, free: 4.785 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.01678, allocations: 47.95 kB / 358.8 MB, free: 4.738 MB / 282.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 9.426e-05/0.01688, allocations: 95.25 kB / 358.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.01703, allocations: 82.61 kB / 359 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01703, allocations: 0 / 359 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.894e-05/0.01706, allocations: 27.62 kB / 359 MB, free: 4.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.01737, allocations: 59.88 kB / 359.1 MB, free: 4.465 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: created linear, non-linear and system jacobian parts: time 0.00119/0.01856, allocations: 450.1 kB / 359.5 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.375e-05/0.01861, allocations: 80.31 kB / 359.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.333e-05/0.01869, allocations: 25.62 kB / 359.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.01873, allocations: 24.5 kB / 359.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of SimCode: time 1.522e-06/0.01873, allocations: 0 / 359.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of Templates: time 0.005086/0.02382, allocations: 2.454 MB / 362.1 MB, free: 1.449 MB / 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.957104914356023]