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.001548/0.001548, allocations: 109 kB / 16.37 MB, free: 6.004 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.001728/0.001728, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.467/1.467, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09736/0.09736, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 60.33 kB / 371.7 MB, free: 50.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 53.62 MB / 425.4 MB, free: 13.31 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.03775/0.1436, allocations: 29.54 MB / 454.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03209/0.1757, allocations: 28.69 MB / 483.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.1772, allocations: 23.88 kB / 483.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.179, allocations: 0.6553 MB / 484.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005646/0.1846, allocations: 2.192 MB / 486.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01053/0.1952, allocations: 3.844 MB / 490.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004946/0.2001, allocations: 2.852 MB / 493.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00319/0.2034, allocations: 1.688 MB / 494.8 MB, free: 7.715 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002675/0.2061, allocations: 1.317 MB / 496.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.2091, allocations: 1.479 MB / 497.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005371/0.2096, allocations: 264 kB / 497.9 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01361/0.2233, allocations: 3.109 MB / 0.4893 GB, free: 1.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.2247, allocations: 0.5997 MB / 0.4899 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002435/0.2271, allocations: 1.311 MB / 0.4911 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.2447, allocations: 5.983 MB / 0.497 GB, free: 9.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.2447, allocations: 0 / 0.497 GB, free: 9.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2448, allocations: 0 / 0.497 GB, free: 9.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.822e-05/0.2449, allocations: 0 / 0.497 GB, free: 9.617 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.00864/0.2535, allocations: 3.08 MB / 0.5 GB, free: 6.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.2536, allocations: 20.02 kB / 0.5 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003508/0.2571, allocations: 0.5402 MB / 0.5005 GB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.2609, allocations: 1.295 MB / 0.5018 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.2612, allocations: 228.1 kB / 0.502 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000459/0.2616, allocations: 227.8 kB / 0.5022 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004474/0.2661, allocations: 2.667 MB / 0.5048 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.586e-05/0.2662, allocations: 0 / 0.5048 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002164/0.2664, allocations: 88 kB / 0.5049 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.501e-05/0.2665, allocations: 52 kB / 0.505 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1924/0.4588, allocations: 3.308 MB / 0.5082 GB, free: 76.02 MB / 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.01381/0.4727, allocations: 8.638 MB / 0.5166 GB, free: 71.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.475, allocations: 2.005 MB / 0.5186 GB, free: 70.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.4763, allocations: 0.9235 MB / 0.5195 GB, free: 70.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009848/0.4861, allocations: 7.864 MB / 0.5272 GB, free: 63.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.4862, allocations: 48 kB / 0.5272 GB, free: 63.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 2.936e-06/0.4862, allocations: 0 / 0.5272 GB, free: 63.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.02757/0.5138, allocations: 8.216 MB / 0.5352 GB, free: 59.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.5139, allocations: 95.17 kB / 0.5353 GB, free: 59.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.5152, allocations: 1.356 MB / 0.5367 GB, free: 58.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.5154, allocations: 57.3 kB / 0.5367 GB, free: 58.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.5158, allocations: 1.051 MB / 0.5377 GB, free: 57.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003133/0.5161, allocations: 0.6188 MB / 0.5383 GB, free: 57.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005096/0.5166, allocations: 480.8 kB / 0.5388 GB, free: 56.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.022e-05/0.5166, allocations: 315.7 kB / 0.5391 GB, free: 56.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.5177, allocations: 0.8131 MB / 0.5399 GB, free: 55.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.5193, allocations: 1.654 MB / 0.5415 GB, free: 53.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/0.5227, allocations: 2.606 MB / 0.5441 GB, free: 50.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/0.5228, allocations: 9.781 kB / 0.5441 GB, free: 50.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00592/0.5287, allocations: 3.036 MB / 0.547 GB, free: 47.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.5287, allocations: 16 kB / 0.547 GB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.021e-05/0.5288, allocations: 28 kB / 0.5471 GB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/0.5319, allocations: 0.5166 MB / 0.5476 GB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003467/0.5353, allocations: 0.8035 MB / 0.5484 GB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006766/0.5421, allocations: 8.039 MB / 0.5562 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.5443, allocations: 98.45 kB / 0.5563 GB, free: 37.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.5446, allocations: 143.9 kB / 0.5564 GB, free: 37.39 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.0008417/0.5454, allocations: 452.2 kB / 0.5569 GB, free: 36.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003265/0.5457, allocations: 169.9 kB / 0.557 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005639/0.5514, allocations: 2.585 MB / 0.5596 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.5514, allocations: 23.94 kB / 0.5596 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5514, allocations: 0 / 0.5596 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.5514, allocations: 7.969 kB / 0.5596 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007924/0.5594, allocations: 4.76 MB / 0.5642 GB, free: 29.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.5594, allocations: 12 kB / 0.5643 GB, free: 29.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/0.5609, allocations: 418.1 kB / 0.5646 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003034/0.5639, allocations: 0.5458 MB / 0.5652 GB, free: 28.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.5641, allocations: 83.97 kB / 0.5653 GB, free: 28.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006104/0.5702, allocations: 7.84 MB / 0.5729 GB, free: 19.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/0.5702, allocations: 19.88 kB / 0.5729 GB, free: 19.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005831/0.5761, allocations: 3.456 MB / 0.5763 GB, free: 16.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/0.5765, allocations: 246.8 kB / 0.5765 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/0.5768, allocations: 56 kB / 0.5766 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009355/0.5777, allocations: 47.98 kB / 0.5766 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.578, allocations: 190.1 kB / 0.5768 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.5781, allocations: 98.59 kB / 0.5769 GB, free: 15.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008377/0.5789, allocations: 0.8889 MB / 0.5778 GB, free: 14.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5789, allocations: 4 kB / 0.5778 GB, free: 14.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003121/0.5821, allocations: 1.188 MB / 0.579 GB, free: 13.61 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.002166/0.5842, allocations: 1.314 MB / 0.5802 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004203/0.5885, allocations: 2.489 MB / 0.5827 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.5885, allocations: 4 kB / 0.5827 GB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.5903, allocations: 1.441 MB / 0.5841 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.5922, allocations: 348.3 kB / 0.5844 GB, free: 8.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00503/0.5973, allocations: 3.981 MB / 0.5883 GB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/0.598, allocations: 1.435 MB / 0.5897 GB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001522/0.5996, allocations: 461.6 kB / 0.5901 GB, free: 2.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005724/0.6001, allocations: 291.4 kB / 0.5904 GB, free: 2.277 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6001, allocations: 0 / 0.5904 GB, free: 2.277 MB / 382.1 MB Notification: Performance of Templates: time 0.06121/0.6614, allocations: 41.14 MB / 0.6306 GB, free: 9.629 MB / 430.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)