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/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.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/Chemical 1.4.0-master/package.mo): time 0.119/0.119, allocations: 15.26 MB / 31.21 MB, free: 3.223 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.001091/0.001091, allocations: 177 kB / 36.3 MB, free: 2.258 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.474/1.474, allocations: 223.3 MB / 264.5 MB, free: 6.23 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.0007921/0.0007922, allocations: 87.77 kB / 319.9 MB, free: 3.156 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005558/0.000556, allocations: 15.47 kB / 385.2 MB, free: 50.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1111, allocations: 54.64 MB / 439.8 MB, free: 76 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3631/0.4743, allocations: 99.89 MB / 0.5271 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.4747, allocations: 68.5 kB / 0.5271 GB, free: 15.64 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. [/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 C.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$C. 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.1155/0.5902, allocations: 34.28 MB / 0.5606 GB, free: 25.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5903, allocations: 4 kB / 0.5606 GB, free: 25.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.922e-05/0.5903, allocations: 27.03 kB / 0.5607 GB, free: 25.61 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002452/0.5928, allocations: 1.356 MB / 0.562 GB, free: 24.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.5928, allocations: 8.719 kB / 0.562 GB, free: 24.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008385/0.5937, allocations: 264.7 kB / 0.5622 GB, free: 24.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.5948, allocations: 0.7767 MB / 0.563 GB, free: 24.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.5949, allocations: 95.14 kB / 0.5631 GB, free: 24.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.595, allocations: 87.44 kB / 0.5632 GB, free: 24.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.5966, allocations: 1.526 MB / 0.5647 GB, free: 23.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.5967, allocations: 3.938 kB / 0.5647 GB, free: 23.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-05/0.5968, allocations: 35.72 kB / 0.5647 GB, free: 23.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.5968, allocations: 19.56 kB / 0.5647 GB, free: 23.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.5989, allocations: 2.164 MB / 0.5668 GB, free: 23.4 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.005552/0.6045, allocations: 4.809 MB / 0.5715 GB, free: 21.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002335/0.6068, allocations: 2.161 MB / 0.5736 GB, free: 20.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007323/0.6076, allocations: 0.7906 MB / 0.5744 GB, free: 20.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003025/0.6079, allocations: 252.2 kB / 0.5746 GB, free: 20.58 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.6079, allocations: 42.81 kB / 0.5747 GB, free: 20.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 3.867e-06/0.6079, allocations: 0 / 0.5747 GB, free: 20.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.008219/0.6161, allocations: 5.457 MB / 0.58 GB, free: 19.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.6162, allocations: 63.81 kB / 0.5801 GB, free: 19.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007589/0.617, allocations: 0.6376 MB / 0.5807 GB, free: 19.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.521e-05/0.6171, allocations: 46.08 kB / 0.5807 GB, free: 19.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.6174, allocations: 398.3 kB / 0.5811 GB, free: 18.87 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.6176, allocations: 410 kB / 0.5815 GB, free: 18.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.6177, allocations: 25.06 kB / 0.5815 GB, free: 18.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6178, allocations: 399.4 kB / 0.5819 GB, free: 18.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007298/0.6186, allocations: 0.7009 MB / 0.5826 GB, free: 17.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007949/0.6194, allocations: 0.8408 MB / 0.5834 GB, free: 17.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/0.6212, allocations: 1.615 MB / 0.585 GB, free: 16.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.6212, allocations: 0 / 0.585 GB, free: 16.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002051/0.6233, allocations: 1.844 MB / 0.5868 GB, free: 15.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.6233, allocations: 11.69 kB / 0.5868 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.6233, allocations: 0 / 0.5868 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004084/0.6237, allocations: 146.3 kB / 0.587 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.625, allocations: 278.5 kB / 0.5872 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006373/0.6256, allocations: 0.7833 MB / 0.588 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/0.6264, allocations: 51.12 kB / 0.588 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-05/0.6264, allocations: 43.98 kB / 0.5881 GB, free: 14.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (132): * Single equations (assignments): 131 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004848/0.6269, allocations: 249.6 kB / 0.5883 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.6271, allocations: 88.47 kB / 0.5884 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002483/0.6295, allocations: 1.978 MB / 0.5903 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.6296, allocations: 11.69 kB / 0.5903 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.6296, allocations: 0 / 0.5903 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.6296, allocations: 7.969 kB / 0.5904 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/0.6346, allocations: 4.012 MB / 0.5943 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6346, allocations: 4.5 kB / 0.5943 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.6359, allocations: 275.6 kB / 0.5945 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003632/0.6362, allocations: 140.8 kB / 0.5947 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.015e-05/0.6363, allocations: 35.98 kB / 0.5947 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006193/0.6369, allocations: 0.7825 MB / 0.5955 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.637, allocations: 4 kB / 0.5955 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003689/0.6407, allocations: 3.023 MB / 0.5984 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004648/0.6411, allocations: 259.9 kB / 0.5987 GB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.6413, allocations: 27.98 kB / 0.5987 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.6418, allocations: 47.89 kB / 0.5987 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.6419, allocations: 100.7 kB / 0.5988 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.611e-05/0.642, allocations: 44.08 kB / 0.5989 GB, free: 5.723 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005574/0.6425, allocations: 455 kB / 0.5993 GB, free: 5.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6426, allocations: 4 kB / 0.5993 GB, free: 5.281 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001498/0.6441, allocations: 0.5776 MB / 0.5999 GB, free: 4.703 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (131): * Single equations (assignments): 130 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/0.6452, allocations: 0.6758 MB / 0.6005 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002462/0.6477, allocations: 1.652 MB / 0.6022 GB, free: 2.438 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6477, allocations: 0.6875 kB / 0.6022 GB, free: 2.438 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.6488, allocations: 0.8839 MB / 0.603 GB, free: 1.551 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.6507, allocations: 308.6 kB / 0.6033 GB, free: 1.254 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.6546, allocations: 2.785 MB / 0.606 GB, free: 14.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006921/0.6553, allocations: 1.039 MB / 0.6071 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008503/0.6562, allocations: 179.5 kB / 0.6072 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.6564, allocations: 103.4 kB / 0.6073 GB, free: 13.05 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.6564, allocations: 0 / 0.6073 GB, free: 13.05 MB / 410.7 MB Notification: Performance of Templates: time 0.03364/0.6901, allocations: 21.85 MB / 0.6287 GB, free: 7.398 MB / 426.7 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)