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.0009495/0.0009495, allocations: 85.27 kB / 19.87 MB, free: 4.617 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.0009875/0.0009875, allocations: 165 kB / 23.27 MB, free: 1.219 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.9887/0.9887, allocations: 177.1 MB / 203.7 MB, free: 5.512 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.06174/0.06174, allocations: 12.76 MB / 273 MB, free: 128 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.814e-06/1.814e-06, allocations: 0 / 347.1 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.446e-05/2.627e-05, allocations: 6.25 kB / 347.1 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002885/0.002911, allocations: 2.684 MB / 349.8 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.006304, allocations: 2.726 MB / 352.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.006518, allocations: 11.88 kB / 352.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.006727, allocations: 43.58 kB / 352.6 MB, free: 11.48 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.001164/0.007891, allocations: 405.8 kB / 353 MB, free: 11.09 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.0007738/0.008665, allocations: 426.5 kB / 353.4 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.009007, allocations: 298.5 kB / 353.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.009131, allocations: 16.59 kB / 353.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.009287, allocations: 143.7 kB / 353.9 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.009479, allocations: 99.69 kB / 354 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.009502, allocations: 12 kB / 354 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.477e-05/0.009557, allocations: 19.94 kB / 354 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.702e-05/0.009614, allocations: 47.77 kB / 354 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.681e-05/0.00967, allocations: 63.83 kB / 354.1 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.009915, allocations: 187.2 kB / 354.3 MB, free: 9.793 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.009919, allocations: 3.984 kB / 354.3 MB, free: 9.789 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.00992, allocations: 4 kB / 354.3 MB, free: 9.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.009924, allocations: 0 / 354.3 MB, free: 9.785 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.0005345/0.01046, allocations: 0.5384 MB / 354.8 MB, free: 9.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.01049, allocations: 11.98 kB / 354.8 MB, free: 9.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.01062, allocations: 48.72 kB / 354.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.01089, allocations: 235.6 kB / 355.1 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.0109, allocations: 12.38 kB / 355.1 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.01092, allocations: 12.38 kB / 355.1 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.01104, allocations: 74.22 kB / 355.2 MB, free: 8.793 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.01105, allocations: 3.938 kB / 355.2 MB, free: 8.789 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.01106, allocations: 7.984 kB / 355.2 MB, free: 8.781 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.01107, allocations: 8 kB / 355.2 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.42e-05/0.01113, allocations: 36.5 kB / 355.3 MB, free: 8.738 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.01167, allocations: 423.8 kB / 355.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.01177, allocations: 59.08 kB / 355.7 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.961e-05/0.0118, allocations: 31.66 kB / 355.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.01181, allocations: 4 kB / 355.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.01183, allocations: 41.42 kB / 355.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.01184, allocations: 0 / 355.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001584/0.01199, allocations: 97.47 kB / 355.9 MB, free: 8.035 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.01202, allocations: 59.34 kB / 356 MB, free: 7.965 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.01217, allocations: 276.2 kB / 356.2 MB, free: 7.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.01218, allocations: 29.7 kB / 356.3 MB, free: 7.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.01226, allocations: 199 kB / 356.5 MB, free: 7.441 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.01229, allocations: 43.67 kB / 356.5 MB, free: 7.398 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.01233, allocations: 43.34 kB / 356.5 MB, free: 7.348 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.01245, allocations: 0.4962 MB / 357 MB, free: 6.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.277e-05/0.01248, allocations: 19.98 kB / 357.1 MB, free: 6.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.209e-05/0.01253, allocations: 78.08 kB / 357.1 MB, free: 6.719 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.226e-05/0.01261, allocations: 93.98 kB / 357.2 MB, free: 6.602 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01261, allocations: 0 / 357.2 MB, free: 6.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001416/0.01276, allocations: 141.4 kB / 357.4 MB, free: 6.457 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.01277, allocations: 10.48 kB / 357.4 MB, free: 6.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01278, allocations: 4 kB / 357.4 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.01279, allocations: 0 / 357.4 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.01289, allocations: 39.98 kB / 357.4 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.01289, allocations: 11.81 kB / 357.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.57e-05/0.01295, allocations: 15.89 kB / 357.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.01296, allocations: 8 kB / 357.5 MB, free: 6.371 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.365e-05/0.01303, allocations: 156.6 kB / 357.6 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.01306, allocations: 27.95 kB / 357.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.01309, allocations: 25.77 kB / 357.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.0131, allocations: 4 kB / 357.7 MB, free: 6.152 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.0131, allocations: 3.938 kB / 357.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.0131, allocations: 0 / 357.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.01325, allocations: 157 kB / 357.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.01325, allocations: 0 / 357.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-05/0.0133, allocations: 16 kB / 357.8 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.01331, allocations: 0 / 357.8 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.01332, allocations: 7.984 kB / 357.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.01332, allocations: 0 / 357.8 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.71e-07/0.01332, allocations: 4 kB / 357.8 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.01349, allocations: 251.7 kB / 358.1 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.01353, allocations: 31.78 kB / 358.1 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.01355, allocations: 4 kB / 358.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.816e-05/0.01361, allocations: 4 kB / 358.1 MB, free: 5.637 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.653e-05/0.01363, allocations: 11.97 kB / 358.1 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.01363, allocations: 0 / 358.1 MB, free: 5.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.4e-05/0.01371, allocations: 197.1 kB / 358.3 MB, free: 5.434 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01371, allocations: 0 / 358.3 MB, free: 5.434 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.01389, allocations: 43.94 kB / 358.4 MB, free: 5.391 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 7.808e-05/0.01397, allocations: 95.22 kB / 358.5 MB, free: 5.285 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.01407, allocations: 66.52 kB / 358.5 MB, free: 5.219 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01407, allocations: 0 / 358.5 MB, free: 5.219 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.611e-05/0.0141, allocations: 31.61 kB / 358.6 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.01435, allocations: 43.94 kB / 358.6 MB, free: 5.145 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.0009713/0.01532, allocations: 421.9 kB / 359 MB, free: 4.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.823e-05/0.01537, allocations: 84.31 kB / 359.1 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.54e-05/0.01542, allocations: 17.58 kB / 359.1 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.826e-05/0.01552, allocations: 114.1 kB / 359.2 MB, free: 4.477 MB / 282.7 MB Notification: Performance of SimCode: time 6.02e-07/0.01552, allocations: 0 / 359.2 MB, free: 4.477 MB / 282.7 MB Notification: Performance of Templates: time 0.003914/0.01944, allocations: 2.36 MB / 361.6 MB, free: 2.168 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.8071629302576184]