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.1183/0.1183, allocations: 15.26 MB / 30.21 MB, free: 3.32 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.001164/0.001164, allocations: 179.6 kB / 35.3 MB, free: 2.379 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.515/1.515, allocations: 223.2 MB / 263.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008819/0.0008819, allocations: 96.25 kB / 318.8 MB, free: 3.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003448, allocations: 8.625 kB / 383.9 MB, free: 50.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1049, allocations: 54.65 MB / 438.6 MB, free: 376 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/0.5007, allocations: 99.85 MB / 0.5258 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.5011, allocations: 69.38 kB / 0.5259 GB, free: 15.52 MB / 378.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.05959/0.5607, allocations: 24.81 MB / 0.5501 GB, free: 28.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5608, allocations: 0 / 0.5501 GB, free: 28.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.994e-05/0.5608, allocations: 15.5 kB / 0.5501 GB, free: 28.77 MB / 394.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.002004/0.5629, allocations: 1.09 MB / 0.5512 GB, free: 27.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.5629, allocations: 11.56 kB / 0.5512 GB, free: 27.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005754/0.5635, allocations: 188 kB / 0.5514 GB, free: 27.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.5644, allocations: 0.5963 MB / 0.5519 GB, free: 27.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.5645, allocations: 84.08 kB / 0.552 GB, free: 27.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.5646, allocations: 72.53 kB / 0.5521 GB, free: 27.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.5658, allocations: 1.088 MB / 0.5532 GB, free: 27.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.5659, allocations: 0 / 0.5532 GB, free: 27.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.5659, allocations: 28.44 kB / 0.5532 GB, free: 27.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.5659, allocations: 15.41 kB / 0.5532 GB, free: 27.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.5674, allocations: 1.542 MB / 0.5547 GB, free: 26.98 MB / 394.7 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.00452/0.5719, allocations: 3.736 MB / 0.5584 GB, free: 25.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.5739, allocations: 1.659 MB / 0.56 GB, free: 24.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002373/0.5741, allocations: 165.2 kB / 0.5601 GB, free: 24.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.5742, allocations: 42.62 kB / 0.5602 GB, free: 24.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 2.725e-06/0.5742, allocations: 0 / 0.5602 GB, free: 24.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.00564/0.5798, allocations: 4.074 MB / 0.5641 GB, free: 23.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5799, allocations: 63.98 kB / 0.5642 GB, free: 23.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004229/0.5803, allocations: 443.8 kB / 0.5646 GB, free: 23.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.5804, allocations: 41.11 kB / 0.5647 GB, free: 23.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.5805, allocations: 310.8 kB / 0.565 GB, free: 23.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.5807, allocations: 292.7 kB / 0.5652 GB, free: 23.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.5807, allocations: 15.47 kB / 0.5653 GB, free: 23.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5809, allocations: 373.6 kB / 0.5656 GB, free: 22.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005123/0.5814, allocations: 0.5427 MB / 0.5661 GB, free: 22.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.582, allocations: 0.6263 MB / 0.5668 GB, free: 22.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005803/0.5825, allocations: 0.5785 MB / 0.5673 GB, free: 22.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.5826, allocations: 0 / 0.5673 GB, free: 22.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001393/0.584, allocations: 1.387 MB / 0.5687 GB, free: 22.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.584, allocations: 11.75 kB / 0.5687 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.584, allocations: 4.25 kB / 0.5687 GB, free: 22.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002866/0.5843, allocations: 99.11 kB / 0.5688 GB, free: 22.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.5852, allocations: 201.7 kB / 0.569 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004839/0.5857, allocations: 0.7011 MB / 0.5697 GB, free: 21.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.5862, allocations: 30.86 kB / 0.5697 GB, free: 21.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.5862, allocations: 34.36 kB / 0.5697 GB, free: 21.79 MB / 394.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 () * Number of clocked 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.0003424/0.5866, allocations: 215.8 kB / 0.5699 GB, free: 21.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.5867, allocations: 66.5 kB / 0.57 GB, free: 21.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.5884, allocations: 1.438 MB / 0.5714 GB, free: 21.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.465e-06/0.5884, allocations: 11.41 kB / 0.5714 GB, free: 21.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5884, allocations: 0 / 0.5714 GB, free: 21.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.5884, allocations: 3.984 kB / 0.5714 GB, free: 21.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/0.5914, allocations: 2.76 MB / 0.5741 GB, free: 20.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5915, allocations: 0 / 0.5741 GB, free: 20.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008483/0.5923, allocations: 196.4 kB / 0.5743 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002431/0.5926, allocations: 101.1 kB / 0.5744 GB, free: 20.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.826e-05/0.5927, allocations: 41.53 kB / 0.5744 GB, free: 20.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004417/0.5931, allocations: 0.6842 MB / 0.5751 GB, free: 19.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5931, allocations: 3.875 kB / 0.5751 GB, free: 19.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.5953, allocations: 2.298 MB / 0.5773 GB, free: 19.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.5956, allocations: 203.2 kB / 0.5775 GB, free: 18.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.5957, allocations: 23.84 kB / 0.5776 GB, free: 18.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.5961, allocations: 39.42 kB / 0.5776 GB, free: 18.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.103e-05/0.5962, allocations: 60.06 kB / 0.5777 GB, free: 18.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.5962, allocations: 35.27 kB / 0.5777 GB, free: 18.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003488/0.5966, allocations: 354.9 kB / 0.578 GB, free: 18.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5966, allocations: 0 / 0.578 GB, free: 18.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009614/0.5976, allocations: 400.9 kB / 0.5784 GB, free: 18.57 MB / 394.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 () * Number of clocked 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.0007474/0.5983, allocations: 0.4976 MB / 0.5789 GB, free: 18.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.5996, allocations: 1.227 MB / 0.5801 GB, free: 17.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5996, allocations: 0 / 0.5801 GB, free: 17.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.6002, allocations: 0.639 MB / 0.5807 GB, free: 17.42 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.601, allocations: 201.3 kB / 0.5809 GB, free: 17.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.6033, allocations: 2.109 MB / 0.583 GB, free: 15.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.6037, allocations: 0.9583 MB / 0.5839 GB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004642/0.6042, allocations: 138.5 kB / 0.584 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.6044, allocations: 77.59 kB / 0.5841 GB, free: 14.95 MB / 394.7 MB Notification: Performance of SimCode: time 8.81e-07/0.6044, allocations: 0 / 0.5841 GB, free: 14.95 MB / 394.7 MB Notification: Performance of Templates: time 0.02192/0.6263, allocations: 15.61 MB / 0.5994 GB, free: 3.566 MB / 394.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)