Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007844/0.007844, allocations: 104.5 kB / 15.74 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001442, allocations: 191.8 kB / 16.67 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1003/0.1003, allocations: 15.31 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.89 kB / 425.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1229, allocations: 53.61 MB / 478.8 MB, free: 5.801 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.SimpleReaction2): time 0.03738/0.1604, allocations: 24.61 MB / 0.4916 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.1757, allocations: 11.62 MB / 0.5029 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000916/0.1766, allocations: 11.94 kB / 0.5029 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009376/0.1776, allocations: 258 kB / 0.5032 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003796/0.1814, allocations: 0.9773 MB / 0.5042 GB, free: 356 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2977/0.4791, allocations: 1.497 MB / 0.5056 GB, free: 18.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.4812, allocations: 1.244 MB / 0.5068 GB, free: 18.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009416/0.4822, allocations: 0.7047 MB / 0.5075 GB, free: 18.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008102/0.483, allocations: 0.6078 MB / 0.5081 GB, free: 18.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008558/0.4839, allocations: 0.6656 MB / 0.5088 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.484, allocations: 107.2 kB / 0.5089 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004242/0.4883, allocations: 1.286 MB / 0.5101 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003312/0.4886, allocations: 260.8 kB / 0.5104 GB, free: 18.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006788/0.4893, allocations: 0.5467 MB / 0.5109 GB, free: 18.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005322/0.4946, allocations: 2.511 MB / 0.5134 GB, free: 18.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4947, allocations: 2.016 kB / 0.5134 GB, free: 18.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4947, allocations: 0 / 0.5134 GB, free: 18.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.4947, allocations: 0 / 0.5134 GB, free: 18.29 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003011/0.4977, allocations: 1.495 MB / 0.5148 GB, free: 17.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4978, allocations: 9.828 kB / 0.5148 GB, free: 17.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009614/0.4987, allocations: 209.7 kB / 0.515 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009594/0.4997, allocations: 0.5781 MB / 0.5156 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-05/0.4998, allocations: 94.41 kB / 0.5157 GB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.5, allocations: 92.73 kB / 0.5158 GB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.5018, allocations: 1.055 MB / 0.5168 GB, free: 16.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.5018, allocations: 4.031 kB / 0.5168 GB, free: 16.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-05/0.5019, allocations: 34.88 kB / 0.5168 GB, free: 16.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.5019, allocations: 22 kB / 0.5169 GB, free: 16.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.504, allocations: 1.273 MB / 0.5181 GB, free: 16.35 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005452/0.5095, allocations: 3.468 MB / 0.5215 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002219/0.5117, allocations: 1.526 MB / 0.523 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005944/0.5123, allocations: 434.4 kB / 0.5234 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004829/0.5172, allocations: 4.034 MB / 0.5273 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.5172, allocations: 42.09 kB / 0.5274 GB, free: 10.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.175e-06/0.5172, allocations: 0 / 0.5274 GB, free: 10.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.003034/0.5202, allocations: 1.662 MB / 0.529 GB, free: 9.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.5203, allocations: 66.47 kB / 0.5291 GB, free: 9.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005529/0.5209, allocations: 0.5119 MB / 0.5296 GB, free: 8.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.5209, allocations: 36.45 kB / 0.5296 GB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.5211, allocations: 455.2 kB / 0.53 GB, free: 8.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.5213, allocations: 226.5 kB / 0.5302 GB, free: 8.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.5215, allocations: 174.7 kB / 0.5304 GB, free: 8.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.239e-05/0.5216, allocations: 375.9 kB / 0.5308 GB, free: 8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.522, allocations: 210.2 kB / 0.531 GB, free: 7.934 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.5225, allocations: 0.5366 MB / 0.5315 GB, free: 7.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009288/0.5234, allocations: 0.8158 MB / 0.5323 GB, free: 6.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.5234, allocations: 2.75 kB / 0.5323 GB, free: 6.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001169/0.5246, allocations: 0.8604 MB / 0.5331 GB, free: 6.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.5246, allocations: 8.5 kB / 0.5331 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.5247, allocations: 9.875 kB / 0.5331 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.971e-05/0.5247, allocations: 21.19 kB / 0.5332 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008711/0.5256, allocations: 263 kB / 0.5334 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.777e-05/0.5256, allocations: 27.81 kB / 0.5334 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004951/0.5261, allocations: 30.53 kB / 0.5335 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.808e-05/0.5262, allocations: 50.03 kB / 0.5335 GB, free: 6.516 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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 0.0003289/0.5265, allocations: 232.9 kB / 0.5337 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.5266, allocations: 64.22 kB / 0.5338 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.5279, allocations: 0.6808 MB / 0.5345 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5279, allocations: 10.5 kB / 0.5345 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.5279, allocations: 0 / 0.5345 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.5279, allocations: 3.375 kB / 0.5345 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.5291, allocations: 0.7903 MB / 0.5353 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.5291, allocations: 3.188 kB / 0.5353 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/0.5298, allocations: 169.3 kB / 0.5354 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.5298, allocations: 6.812 kB / 0.5354 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/0.5299, allocations: 21.66 kB / 0.5354 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.5299, allocations: 9.875 kB / 0.5355 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5299, allocations: 0 / 0.5355 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.5311, allocations: 0.9507 MB / 0.5364 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.5315, allocations: 188 kB / 0.5366 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.5316, allocations: 17.77 kB / 0.5366 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.5318, allocations: 20.75 kB / 0.5366 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5319, allocations: 47.62 kB / 0.5366 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.672e-05/0.532, allocations: 23.31 kB / 0.5367 GB, free: 4.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003292/0.5323, allocations: 342.5 kB / 0.537 GB, free: 4.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5323, allocations: 2.656 kB / 0.537 GB, free: 4.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00183/0.5342, allocations: 480.6 kB / 0.5375 GB, free: 4.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.logn) * 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 (71): * Single equations (assignments): 71 * 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 0.00108/0.5352, allocations: 0.5897 MB / 0.538 GB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009219/0.5362, allocations: 0.6025 MB / 0.5386 GB, free: 3.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5362, allocations: 0 / 0.5386 GB, free: 3.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.5365, allocations: 281.7 kB / 0.5389 GB, free: 2.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008619/0.5374, allocations: 152.1 kB / 0.539 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.5397, allocations: 1.496 MB / 0.5405 GB, free: 1.277 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.5401, allocations: 0.9565 MB / 0.5414 GB, free: 312 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004916/0.5406, allocations: 166 kB / 0.5416 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.5408, allocations: 102 kB / 0.5417 GB, free: 92 kB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5408, allocations: 0 / 0.5417 GB, free: 92 kB / 382.1 MB Notification: Performance of Templates: time 0.02359/0.5644, allocations: 14.29 MB / 0.5556 GB, free: 2.555 MB / 398.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)