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.001048/0.001048, allocations: 92.22 kB / 19.65 MB, free: 280 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.001006/0.001006, allocations: 173 kB / 23.02 MB, free: 1.551 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.016/1.016, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.05656/0.05656, allocations: 12.76 MB / 272.7 MB, free: 284 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.683e-06/1.683e-06, allocations: 0 / 346.7 MB, free: 1.273 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.856e-05, allocations: 8.781 kB / 346.7 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002762/0.00279, allocations: 2.708 MB / 349.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006913/0.009703, allocations: 2.809 MB / 352.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.009837, allocations: 15.81 kB / 352.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.01, allocations: 39.64 kB / 352.2 MB, free: 11.66 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.003978/0.01398, allocations: 405.8 kB / 352.6 MB, free: 11.27 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.0006743/0.01465, allocations: 430.6 kB / 353.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003043/0.01496, allocations: 286.5 kB / 353.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.01508, allocations: 24.58 kB / 353.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.01522, allocations: 143.6 kB / 353.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.01543, allocations: 103.7 kB / 353.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.01545, allocations: 12 kB / 353.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.437e-05/0.01551, allocations: 19.94 kB / 353.6 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.142e-05/0.01557, allocations: 43.77 kB / 353.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.45e-05/0.01565, allocations: 67.84 kB / 353.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.01591, allocations: 183.3 kB / 353.9 MB, free: 9.973 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.01591, allocations: 3.984 kB / 353.9 MB, free: 9.969 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01591, allocations: 4 kB / 353.9 MB, free: 9.965 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.01592, allocations: 3.938 kB / 353.9 MB, free: 9.961 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.0006401/0.01656, allocations: 0.5346 MB / 354.5 MB, free: 9.391 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.0166, allocations: 11.98 kB / 354.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.01674, allocations: 36.8 kB / 354.5 MB, free: 9.344 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/0.02008, allocations: 243.6 kB / 354.8 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.02009, allocations: 8.375 kB / 354.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.02012, allocations: 12.38 kB / 354.8 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.02027, allocations: 86.22 kB / 354.9 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.02028, allocations: 3.938 kB / 354.9 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.0203, allocations: 3.984 kB / 354.9 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.02031, allocations: 4 kB / 354.9 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.962e-05/0.0204, allocations: 48.5 kB / 354.9 MB, free: 8.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.02108, allocations: 467.2 kB / 355.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.02122, allocations: 74.95 kB / 355.5 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.947e-05/0.02127, allocations: 27.67 kB / 355.5 MB, free: 8.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.02128, allocations: 4 kB / 355.5 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.0213, allocations: 33.39 kB / 355.5 MB, free: 8.254 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.0213, allocations: 0 / 355.5 MB, free: 8.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002355/0.02154, allocations: 113.5 kB / 355.6 MB, free: 8.137 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.02157, allocations: 51.41 kB / 355.7 MB, free: 8.074 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.02179, allocations: 284.3 kB / 356 MB, free: 7.777 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.0218, allocations: 29.7 kB / 356 MB, free: 7.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.692e-05/0.0219, allocations: 199 kB / 356.2 MB, free: 7.543 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.02193, allocations: 39.69 kB / 356.2 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.02199, allocations: 47.36 kB / 356.3 MB, free: 7.449 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.02212, allocations: 0.5039 MB / 356.8 MB, free: 6.934 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.437e-05/0.02217, allocations: 19.98 kB / 356.8 MB, free: 6.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.731e-05/0.02225, allocations: 75.66 kB / 356.9 MB, free: 6.816 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.02237, allocations: 105.3 kB / 357 MB, free: 6.691 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.02237, allocations: 0 / 357 MB, free: 6.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001995/0.02257, allocations: 149.3 kB / 357.1 MB, free: 6.539 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.02259, allocations: 6.812 kB / 357.1 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.02259, allocations: 4 kB / 357.1 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.02261, allocations: 3.938 kB / 357.1 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/0.02576, allocations: 35.92 kB / 357.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.02577, allocations: 11.98 kB / 357.2 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.091e-05/0.02585, allocations: 15.89 kB / 357.2 MB, free: 6.465 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.02587, allocations: 8 kB / 357.2 MB, free: 6.457 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.428e-05/0.02596, allocations: 164.7 kB / 357.4 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.026, allocations: 27.86 kB / 357.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.02605, allocations: 21.77 kB / 357.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.02605, allocations: 7.938 kB / 357.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.02605, allocations: 0 / 357.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.02606, allocations: 0 / 357.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.02626, allocations: 180.5 kB / 357.6 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.02626, allocations: 3.938 kB / 357.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.313e-05/0.02634, allocations: 19.98 kB / 357.6 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.02634, allocations: 3.938 kB / 357.6 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.02636, allocations: 8 kB / 357.6 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.02636, allocations: 0 / 357.6 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.02637, allocations: 3.938 kB / 357.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.02662, allocations: 259.7 kB / 357.9 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-05/0.02668, allocations: 31.78 kB / 357.9 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.0267, allocations: 4 kB / 357.9 MB, free: 5.672 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.629e-05/0.02678, allocations: 4 kB / 357.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.0268, allocations: 7.922 kB / 357.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.0268, allocations: 4 kB / 357.9 MB, free: 5.656 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001215/0.02693, allocations: 197.1 kB / 358.1 MB, free: 5.465 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02693, allocations: 4.031 kB / 358.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002609/0.02719, allocations: 44 kB / 358.2 MB, free: 5.418 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.561e-05/0.02728, allocations: 95.23 kB / 358.3 MB, free: 5.312 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001567/0.02744, allocations: 71.53 kB / 358.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.02744, allocations: 0 / 358.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.269e-05/0.02748, allocations: 35.61 kB / 358.4 MB, free: 5.199 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.02784, allocations: 44.78 kB / 358.4 MB, free: 5.156 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.004429/0.03227, allocations: 425.5 kB / 358.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.578e-05/0.03232, allocations: 76.33 kB / 358.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.265e-05/0.0324, allocations: 17.62 kB / 358.9 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.03245, allocations: 28.48 kB / 358.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of SimCode: time 1.011e-06/0.03245, allocations: 0 / 358.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of Templates: time 0.01155/0.044, allocations: 2.281 MB / 361.2 MB, free: 2.336 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.976262583397329]