Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 107.5 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 197.5 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08028/0.08028, allocations: 15.29 MB / 306 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 60.08 kB / 370.5 MB, free: 51.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09094/0.0923, allocations: 53.61 MB / 424.1 MB, free: 14.64 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.ElectrochemicalCell): time 0.03536/0.1277, allocations: 30.98 MB / 455 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03215/0.1599, allocations: 28.39 MB / 483.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002425/0.1623, allocations: 47.62 kB / 483.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.1647, allocations: 0.5822 MB / 484.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.1716, allocations: 1.995 MB / 486.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.1823, allocations: 3.443 MB / 489.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004235/0.1865, allocations: 2.852 MB / 492.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002523/0.1891, allocations: 1.665 MB / 494 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002839/0.1919, allocations: 1.383 MB / 495.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002569/0.1945, allocations: 1.51 MB / 496.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007974/0.1953, allocations: 260 kB / 497.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00939/0.2047, allocations: 3.186 MB / 0.4886 GB, free: 2.238 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.2058, allocations: 0.6193 MB / 0.4892 GB, free: 1.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002145/0.208, allocations: 1.307 MB / 0.4905 GB, free: 312 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007181/0.2152, allocations: 4.481 MB / 0.4949 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2152, allocations: 0 / 0.4949 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2152, allocations: 0 / 0.4949 GB, free: 11.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001195/0.2153, allocations: 0 / 0.4949 GB, free: 11.81 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006407/0.2218, allocations: 3.088 MB / 0.4979 GB, free: 8.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2218, allocations: 8.031 kB / 0.4979 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.224, allocations: 0.5519 MB / 0.4984 GB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.226, allocations: 1.267 MB / 0.4997 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.2262, allocations: 224.1 kB / 0.4999 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/0.2266, allocations: 223.9 kB / 0.5001 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004194/0.2308, allocations: 2.671 MB / 0.5027 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.138e-05/0.2309, allocations: 3.938 kB / 0.5027 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002013/0.2311, allocations: 88 kB / 0.5028 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.2311, allocations: 52 kB / 0.5029 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004873/0.236, allocations: 3.31 MB / 0.5061 GB, free: 116 kB / 382.1 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.1987/0.4347, allocations: 8.671 MB / 0.5146 GB, free: 72.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/0.4374, allocations: 2 MB / 0.5165 GB, free: 71.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.4388, allocations: 0.928 MB / 0.5174 GB, free: 71.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01069/0.4495, allocations: 7.89 MB / 0.5251 GB, free: 65.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.4495, allocations: 45.38 kB / 0.5252 GB, free: 65.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.4495, allocations: 0 / 0.5252 GB, free: 65.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.02934/0.4789, allocations: 8.217 MB / 0.5332 GB, free: 61.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.479, allocations: 98.39 kB / 0.5333 GB, free: 60.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.4804, allocations: 1.359 MB / 0.5346 GB, free: 60.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.4807, allocations: 57.33 kB / 0.5347 GB, free: 60.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004162/0.4811, allocations: 1.04 MB / 0.5357 GB, free: 59.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003979/0.4815, allocations: 0.626 MB / 0.5363 GB, free: 58.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005802/0.4821, allocations: 482.8 kB / 0.5367 GB, free: 58.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.658e-05/0.4822, allocations: 307.7 kB / 0.537 GB, free: 58.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.4834, allocations: 0.8114 MB / 0.5378 GB, free: 57.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.4848, allocations: 1.659 MB / 0.5395 GB, free: 55.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002637/0.4875, allocations: 2.603 MB / 0.542 GB, free: 52.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.4875, allocations: 11.98 kB / 0.542 GB, free: 52.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00614/0.4937, allocations: 3.041 MB / 0.545 GB, free: 49.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.4937, allocations: 16 kB / 0.545 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.753e-05/0.4938, allocations: 29.12 kB / 0.545 GB, free: 49.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003176/0.4969, allocations: 0.522 MB / 0.5455 GB, free: 49.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00355/0.5005, allocations: 0.7997 MB / 0.5463 GB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007197/0.5077, allocations: 8.039 MB / 0.5542 GB, free: 39.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.5099, allocations: 143.6 kB / 0.5543 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/0.5102, allocations: 148 kB / 0.5544 GB, free: 39.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008139/0.511, allocations: 448.9 kB / 0.5549 GB, free: 39.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003378/0.5113, allocations: 165.9 kB / 0.555 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006108/0.5175, allocations: 2.583 MB / 0.5575 GB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.5175, allocations: 20 kB / 0.5576 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.5175, allocations: 3.938 kB / 0.5576 GB, free: 36.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.5176, allocations: 14.61 kB / 0.5576 GB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008372/0.5259, allocations: 4.75 MB / 0.5622 GB, free: 31.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.526, allocations: 14.62 kB / 0.5622 GB, free: 31.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/0.5275, allocations: 418.1 kB / 0.5626 GB, free: 31.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/0.5307, allocations: 0.5445 MB / 0.5632 GB, free: 30.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001849/0.5309, allocations: 82.53 kB / 0.5632 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006158/0.5371, allocations: 7.85 MB / 0.5709 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.5371, allocations: 19.88 kB / 0.5709 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00578/0.5429, allocations: 3.457 MB / 0.5743 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.5434, allocations: 242.9 kB / 0.5745 GB, free: 18.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.5436, allocations: 62.58 kB / 0.5746 GB, free: 18.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.5446, allocations: 78.47 kB / 0.5747 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/0.5449, allocations: 190.1 kB / 0.5749 GB, free: 17.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.545, allocations: 94.58 kB / 0.5749 GB, free: 17.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009447/0.546, allocations: 0.8928 MB / 0.5758 GB, free: 16.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.546, allocations: 0 / 0.5758 GB, free: 16.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003429/0.5494, allocations: 1.18 MB / 0.577 GB, free: 15.81 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001943/0.5514, allocations: 1.308 MB / 0.5782 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0056/0.557, allocations: 2.663 MB / 0.5808 GB, free: 12.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.557, allocations: 0 / 0.5808 GB, free: 12.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.5587, allocations: 1.423 MB / 0.5822 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.5606, allocations: 344.2 kB / 0.5826 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005363/0.5659, allocations: 4.991 MB / 0.5874 GB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006895/0.5666, allocations: 1.433 MB / 0.5888 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007997/0.5674, allocations: 358.8 kB / 0.5892 GB, free: 3.648 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5675, allocations: 0 / 0.5892 GB, free: 3.648 MB / 382.1 MB Notification: Performance of Templates: time 0.08305/0.6505, allocations: 81.77 MB / 0.669 GB, free: 2.219 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)