Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1584/0.1584, allocations: 15.26 MB / 27.81 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 188.4 kB / 32.7 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.4 MB / 258.8 MB, free: 12 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.0008819, allocations: 104.5 kB / 314 MB, free: 15.78 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.266e-05/3.285e-05, allocations: 0 / 376.5 MB, free: 1.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4154, allocations: 54.61 MB / 431.1 MB, free: 50.07 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1765/0.592, allocations: 99.8 MB / 0.5184 GB, free: 15.49 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.5923, allocations: 63.97 kB / 0.5185 GB, free: 15.43 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System A.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$A. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System B.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$B. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.06759/0.6599, allocations: 24.73 MB / 0.5426 GB, free: 6.871 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.66, allocations: 0 / 0.5426 GB, free: 6.871 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.11e-05/0.66, allocations: 16 kB / 0.5427 GB, free: 6.855 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002005/0.662, allocations: 1.009 MB / 0.5436 GB, free: 5.801 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.6621, allocations: 8.031 kB / 0.5437 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000638/0.6627, allocations: 187 kB / 0.5438 GB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.6639, allocations: 0.5928 MB / 0.5444 GB, free: 4.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.664, allocations: 83.64 kB / 0.5445 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.6642, allocations: 71.84 kB / 0.5446 GB, free: 4.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.6657, allocations: 1.075 MB / 0.5456 GB, free: 3.734 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.6658, allocations: 2.438 kB / 0.5456 GB, free: 3.734 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.6659, allocations: 24 kB / 0.5456 GB, free: 3.711 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.6659, allocations: 20 kB / 0.5457 GB, free: 3.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.6678, allocations: 1.52 MB / 0.5471 GB, free: 2.168 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.005818/0.6737, allocations: 3.744 MB / 0.5508 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.6763, allocations: 1.64 MB / 0.5524 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/0.6771, allocations: 0.5882 MB / 0.553 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003914/0.6775, allocations: 172.2 kB / 0.5531 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.6776, allocations: 35.12 kB / 0.5532 GB, free: 11.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=70): time 8.506e-06/0.6776, allocations: 7.922 kB / 0.5532 GB, free: 11.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=84): time 0.007664/0.6853, allocations: 3.543 MB / 0.5566 GB, free: 8.191 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.438e-05/0.6854, allocations: 60.19 kB / 0.5567 GB, free: 8.121 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.6861, allocations: 443.8 kB / 0.5571 GB, free: 7.684 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.263e-05/0.6862, allocations: 41.7 kB / 0.5572 GB, free: 7.637 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.6866, allocations: 320.5 kB / 0.5575 GB, free: 7.316 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.6869, allocations: 275.9 kB / 0.5577 GB, free: 7.043 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.687, allocations: 16 kB / 0.5577 GB, free: 7.027 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002852/0.6873, allocations: 374.8 kB / 0.5581 GB, free: 6.652 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007893/0.6881, allocations: 0.5209 MB / 0.5586 GB, free: 6.133 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008346/0.6889, allocations: 0.6212 MB / 0.5592 GB, free: 5.484 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008648/0.6898, allocations: 0.5697 MB / 0.5598 GB, free: 4.918 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6898, allocations: 4 kB / 0.5598 GB, free: 4.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002192/0.692, allocations: 1.371 MB / 0.5611 GB, free: 3.527 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.692, allocations: 8 kB / 0.5611 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.6921, allocations: 0 / 0.5611 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.6925, allocations: 101 kB / 0.5612 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.6936, allocations: 211.7 kB / 0.5614 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007938/0.6944, allocations: 0.6851 MB / 0.5621 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.695, allocations: 42.39 kB / 0.5621 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.738e-05/0.6951, allocations: 27.98 kB / 0.5622 GB, free: 2.434 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.6953, allocations: 144.8 kB / 0.5623 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.6955, allocations: 63.25 kB / 0.5624 GB, free: 2.223 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002536/0.698, allocations: 1.43 MB / 0.5638 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.698, allocations: 8 kB / 0.5638 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.698, allocations: 0 / 0.5638 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.6981, allocations: 3.984 kB / 0.5638 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.7026, allocations: 2.725 MB / 0.5664 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.7026, allocations: 7.938 kB / 0.5664 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009724/0.7036, allocations: 207.9 kB / 0.5666 GB, free: 13.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004008/0.704, allocations: 92.81 kB / 0.5667 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.411e-05/0.7041, allocations: 32.78 kB / 0.5668 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006427/0.7047, allocations: 0.6871 MB / 0.5674 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-06/0.7048, allocations: 8.062 kB / 0.5674 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002973/0.7077, allocations: 2.26 MB / 0.5696 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005929/0.7083, allocations: 212.1 kB / 0.5698 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.7085, allocations: 20 kB / 0.5699 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.709, allocations: 31.89 kB / 0.5699 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.7092, allocations: 64.66 kB / 0.57 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/0.7093, allocations: 31.98 kB / 0.57 GB, free: 10.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005807/0.7099, allocations: 350.2 kB / 0.5703 GB, free: 9.855 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7099, allocations: 0 / 0.5703 GB, free: 9.855 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001612/0.7115, allocations: 403.7 kB / 0.5707 GB, free: 9.461 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (solution.temperature,A.logn,B.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001214/0.7128, allocations: 0.4935 MB / 0.5712 GB, free: 8.961 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.7151, allocations: 1.203 MB / 0.5724 GB, free: 7.758 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7151, allocations: 0 / 0.5724 GB, free: 7.758 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.7161, allocations: 0.6303 MB / 0.573 GB, free: 7.129 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.7175, allocations: 204.8 kB / 0.5732 GB, free: 6.934 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.7205, allocations: 1.32 MB / 0.5745 GB, free: 5.562 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006532/0.7212, allocations: 0.9723 MB / 0.5754 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007606/0.722, allocations: 132.2 kB / 0.5755 GB, free: 4.438 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.7223, allocations: 71.41 kB / 0.5756 GB, free: 4.367 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7223, allocations: 0 / 0.5756 GB, free: 4.367 MB / 442.7 MB Notification: Performance of Templates: time 0.3354/1.058, allocations: 15.77 MB / 0.591 GB, free: 115.6 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & ./Chemical_Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)