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.09107/0.09107, allocations: 15.26 MB / 22.73 MB, free: 0.9688 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 177 kB / 27.51 MB, free: 6.121 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.409/1.409, allocations: 221.5 MB / 253.7 MB, free: 10.42 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.0009339/0.0009338, allocations: 99.88 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.664e-05/1.669e-05, allocations: 3 kB / 369.6 MB, free: 53.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 54.64 MB / 424.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5429, allocations: 99.14 MB / 0.5111 GB, free: 12.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.5431, allocations: 65.75 kB / 0.5111 GB, free: 12.31 MB / 362.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.07803/0.6212, allocations: 33.86 MB / 0.5442 GB, free: 20.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6212, allocations: 0 / 0.5442 GB, free: 20.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.652e-05/0.6213, allocations: 19.31 kB / 0.5442 GB, free: 20.88 MB / 378.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.003096/0.6244, allocations: 1.277 MB / 0.5455 GB, free: 19.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.6245, allocations: 11.83 kB / 0.5455 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/0.6256, allocations: 263.5 kB / 0.5457 GB, free: 19.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.6272, allocations: 0.7492 MB / 0.5465 GB, free: 19.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.19e-05/0.6273, allocations: 70.56 kB / 0.5465 GB, free: 19.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.6275, allocations: 50.53 kB / 0.5466 GB, free: 19.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002367/0.6298, allocations: 2.079 MB / 0.5486 GB, free: 19.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.6314, allocations: 1.203 MB / 0.5498 GB, free: 18.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.6314, allocations: 0 / 0.5498 GB, free: 18.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.137e-05/0.6315, allocations: 0 / 0.5498 GB, free: 18.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.6315, allocations: 22.41 kB / 0.5498 GB, free: 18.91 MB / 378.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.006091/0.6376, allocations: 4.652 MB / 0.5544 GB, free: 16.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.6401, allocations: 2.104 MB / 0.5564 GB, free: 16.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000698/0.6408, allocations: 0.7442 MB / 0.5571 GB, free: 16.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00032/0.6411, allocations: 248.2 kB / 0.5574 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.6411, allocations: 47.16 kB / 0.5574 GB, free: 15.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.526e-06/0.6412, allocations: 3.969 kB / 0.5574 GB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=118): time 0.009253/0.6504, allocations: 4.679 MB / 0.562 GB, free: 13.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.6505, allocations: 68.09 kB / 0.5621 GB, free: 13.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006412/0.6511, allocations: 0.4932 MB / 0.5625 GB, free: 12.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.184e-05/0.6512, allocations: 25.7 kB / 0.5626 GB, free: 12.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.6515, allocations: 405.2 kB / 0.563 GB, free: 12.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.6518, allocations: 382.2 kB / 0.5633 GB, free: 12.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.6519, allocations: 0 / 0.5633 GB, free: 12.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.6521, allocations: 394.7 kB / 0.5637 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007893/0.6529, allocations: 0.6547 MB / 0.5643 GB, free: 11.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000796/0.6537, allocations: 0.7752 MB / 0.5651 GB, free: 10.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/0.6556, allocations: 0.8988 MB / 0.566 GB, free: 9.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.6557, allocations: 0 / 0.566 GB, free: 9.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003371/0.659, allocations: 1.882 MB / 0.5678 GB, free: 7.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.6591, allocations: 9.719 kB / 0.5678 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.6591, allocations: 0 / 0.5678 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.6594, allocations: 116.8 kB / 0.5679 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.6608, allocations: 271.8 kB / 0.5682 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008167/0.6616, allocations: 0.7941 MB / 0.569 GB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.6623, allocations: 28.03 kB / 0.569 GB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.6624, allocations: 43.92 kB / 0.569 GB, free: 6.133 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: A.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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.0002487/0.6627, allocations: 127.6 kB / 0.5692 GB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.6629, allocations: 86.95 kB / 0.5692 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.6668, allocations: 2.013 MB / 0.5712 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.6668, allocations: 12 kB / 0.5712 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.6668, allocations: 0 / 0.5712 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.6668, allocations: 3.984 kB / 0.5712 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006364/0.6732, allocations: 3.95 MB / 0.5751 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.6732, allocations: 4 kB / 0.5751 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.6745, allocations: 260.2 kB / 0.5753 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003/0.6748, allocations: 116.8 kB / 0.5754 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.311e-05/0.6749, allocations: 23.98 kB / 0.5755 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006772/0.6756, allocations: 0.7901 MB / 0.5762 GB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.6756, allocations: 19.89 kB / 0.5763 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/0.6805, allocations: 3.224 MB / 0.5794 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.6812, allocations: 251.8 kB / 0.5796 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.6814, allocations: 11.98 kB / 0.5797 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.682, allocations: 23.98 kB / 0.5797 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.6822, allocations: 89.09 kB / 0.5798 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.6823, allocations: 43.98 kB / 0.5798 GB, free: 10.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005629/0.6829, allocations: 398.9 kB / 0.5802 GB, free: 10.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6829, allocations: 0 / 0.5802 GB, free: 10.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001857/0.6847, allocations: 0.5151 MB / 0.5807 GB, free: 9.898 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 126 * 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.001456/0.6862, allocations: 0.6513 MB / 0.5813 GB, free: 9.266 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.6884, allocations: 1.537 MB / 0.5828 GB, free: 7.734 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.6884, allocations: 0.6875 kB / 0.5828 GB, free: 7.734 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.6894, allocations: 0.8208 MB / 0.5836 GB, free: 6.914 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.6908, allocations: 268.7 kB / 0.5839 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.6937, allocations: 1.727 MB / 0.5856 GB, free: 4.859 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006353/0.6944, allocations: 1.06 MB / 0.5866 GB, free: 3.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007076/0.6951, allocations: 175.1 kB / 0.5868 GB, free: 3.594 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.6953, allocations: 91.41 kB / 0.5869 GB, free: 3.504 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6954, allocations: 0 / 0.5869 GB, free: 3.504 MB / 394.7 MB Notification: Performance of Templates: time 0.02985/0.7252, allocations: 19.13 MB / 0.6055 GB, free: 0.5625 MB / 410.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)