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.1113/0.1113, allocations: 15.26 MB / 22.73 MB, free: 0.9531 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.0009796/0.0009796, allocations: 185 kB / 27.52 MB, free: 6.113 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.407/1.407, allocations: 221.5 MB / 253.7 MB, free: 10.48 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.0008826/0.0008826, allocations: 99.98 kB / 308.8 MB, free: 10.44 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.194e-05/2.207e-05, allocations: 0 / 369.6 MB, free: 54.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 54.63 MB / 424.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4126/0.525, allocations: 99.12 MB / 0.5111 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.5252, allocations: 70.66 kB / 0.5111 GB, free: 12.32 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. Notification: Performance of FrontEnd - DAE generated: time 0.06037/0.5856, allocations: 24.37 MB / 0.5349 GB, free: 24.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5857, allocations: 3.984 kB / 0.5349 GB, free: 24.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001063/0.5858, allocations: 15.53 kB / 0.5349 GB, free: 24.08 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.003126/0.5889, allocations: 1.011 MB / 0.5359 GB, free: 23.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.589, allocations: 11.7 kB / 0.5359 GB, free: 23.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.59, allocations: 187.4 kB / 0.5361 GB, free: 23.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.5915, allocations: 0.594 MB / 0.5367 GB, free: 22.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-05/0.5916, allocations: 58.73 kB / 0.5368 GB, free: 22.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.5918, allocations: 45.62 kB / 0.5368 GB, free: 22.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001934/0.5937, allocations: 1.484 MB / 0.5383 GB, free: 22.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.5952, allocations: 0.9538 MB / 0.5392 GB, free: 22.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.5952, allocations: 0 / 0.5392 GB, free: 22.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.413e-05/0.5953, allocations: 4 kB / 0.5392 GB, free: 22.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.5953, allocations: 15.5 kB / 0.5392 GB, free: 22.46 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.005779/0.6011, allocations: 3.621 MB / 0.5427 GB, free: 20.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.6032, allocations: 1.622 MB / 0.5443 GB, free: 20.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005398/0.6038, allocations: 0.5648 MB / 0.5449 GB, free: 20.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002775/0.6041, allocations: 170.4 kB / 0.545 GB, free: 20.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.6041, allocations: 38.31 kB / 0.5451 GB, free: 20.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 4.047e-06/0.6041, allocations: 7.812 kB / 0.5451 GB, free: 20.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.006849/0.611, allocations: 3.344 MB / 0.5483 GB, free: 19.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.6111, allocations: 63.81 kB / 0.5484 GB, free: 19.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004995/0.6116, allocations: 394 kB / 0.5488 GB, free: 19.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/0.6117, allocations: 29.64 kB / 0.5488 GB, free: 19.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.6119, allocations: 317.6 kB / 0.5491 GB, free: 18.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.612, allocations: 266.7 kB / 0.5494 GB, free: 18.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.6121, allocations: 0 / 0.5494 GB, free: 18.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.6123, allocations: 367.3 kB / 0.5497 GB, free: 18.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.6128, allocations: 0.5054 MB / 0.5502 GB, free: 18.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.6133, allocations: 0.5874 MB / 0.5508 GB, free: 18.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.6147, allocations: 0.6346 MB / 0.5514 GB, free: 17.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.6147, allocations: 7.703 kB / 0.5514 GB, free: 17.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002321/0.6171, allocations: 1.382 MB / 0.5528 GB, free: 17.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.6171, allocations: 6.438 kB / 0.5528 GB, free: 17.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6171, allocations: 7.438 kB / 0.5528 GB, free: 17.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.6174, allocations: 81.41 kB / 0.5529 GB, free: 17.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009182/0.6183, allocations: 195.4 kB / 0.553 GB, free: 17.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006568/0.619, allocations: 0.7003 MB / 0.5537 GB, free: 17.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.6196, allocations: 15.48 kB / 0.5537 GB, free: 17.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-05/0.6196, allocations: 34.94 kB / 0.5538 GB, free: 17.02 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: 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 (89): * Single equations (assignments): 88 * 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.0002596/0.6199, allocations: 116.1 kB / 0.5539 GB, free: 16.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.62, allocations: 60.06 kB / 0.5539 GB, free: 16.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002622/0.6227, allocations: 1.443 MB / 0.5553 GB, free: 16.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.6227, allocations: 7.75 kB / 0.5554 GB, free: 16.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.6227, allocations: 3.953 kB / 0.5554 GB, free: 16.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.6227, allocations: 3.984 kB / 0.5554 GB, free: 16.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.6268, allocations: 2.671 MB / 0.558 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.6269, allocations: 3.875 kB / 0.558 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008794/0.6278, allocations: 186.6 kB / 0.5582 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.628, allocations: 83.52 kB / 0.5582 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.628, allocations: 21.27 kB / 0.5583 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005041/0.6285, allocations: 0.697 MB / 0.5589 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6286, allocations: 0 / 0.5589 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.6316, allocations: 2.285 MB / 0.5612 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.632, allocations: 199.1 kB / 0.5614 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.6321, allocations: 3.719 kB / 0.5614 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004305/0.6325, allocations: 35.11 kB / 0.5614 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.6327, allocations: 59.75 kB / 0.5615 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.084e-05/0.6327, allocations: 34.45 kB / 0.5615 GB, free: 12.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003895/0.6331, allocations: 310.9 kB / 0.5618 GB, free: 12.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6331, allocations: 0 / 0.5618 GB, free: 12.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00116/0.6343, allocations: 353.6 kB / 0.5621 GB, free: 12.01 MB / 378.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 (90): * Single equations (assignments): 89 * 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.001074/0.6354, allocations: 498.5 kB / 0.5626 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.637, allocations: 1.139 MB / 0.5637 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.637, allocations: 4 kB / 0.5637 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.6378, allocations: 0.5963 MB / 0.5643 GB, free: 10.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.6391, allocations: 189.8 kB / 0.5645 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.6419, allocations: 1.249 MB / 0.5657 GB, free: 9.105 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007523/0.6426, allocations: 0.9642 MB / 0.5666 GB, free: 8.113 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006075/0.6432, allocations: 113.3 kB / 0.5667 GB, free: 8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.6435, allocations: 75.41 kB / 0.5668 GB, free: 7.926 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6435, allocations: 4 kB / 0.5668 GB, free: 7.922 MB / 378.7 MB Notification: Performance of Templates: time 0.02543/0.6689, allocations: 13.79 MB / 0.5803 GB, free: 10.26 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)