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.001116/0.001116, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009423/0.009423, allocations: 169.9 kB / 16.26 MB, free: 6.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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2028/0.2028, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002866, allocations: 8 kB / 372.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2768, allocations: 54.63 MB / 426.7 MB, free: 40.56 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02823/0.3051, allocations: 29.8 MB / 456.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02552/0.3306, allocations: 28.36 MB / 484.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.3328, allocations: 47.69 kB / 484.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.3348, allocations: 0.5858 MB / 485.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006825/0.3416, allocations: 1.954 MB / 487.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01393/0.3556, allocations: 3.361 MB / 490.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00511/0.3607, allocations: 2.765 MB / 493.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002431/0.3632, allocations: 1.36 MB / 494.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.3652, allocations: 1.202 MB / 496.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.3671, allocations: 1.363 MB / 497.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000323/0.3675, allocations: 136 kB / 497.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01022/0.3777, allocations: 3.007 MB / 0.4889 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007788/0.3785, allocations: 484.1 kB / 0.4894 GB, free: 10.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.3801, allocations: 1.177 MB / 0.4905 GB, free: 8.988 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0144/0.3945, allocations: 5.554 MB / 0.4959 GB, free: 4.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3945, allocations: 0 / 0.4959 GB, free: 4.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3946, allocations: 0 / 0.4959 GB, free: 4.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.051e-05/0.3946, allocations: 0 / 0.4959 GB, free: 4.617 MB / 366.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.005461/0.4001, allocations: 2.589 MB / 0.4985 GB, free: 2.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4001, allocations: 12.03 kB / 0.4985 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002241/0.4024, allocations: 0.5373 MB / 0.499 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.4043, allocations: 1.24 MB / 0.5002 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.4045, allocations: 224.1 kB / 0.5004 GB, free: 80 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003924/0.4049, allocations: 231.9 kB / 0.5007 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00427/0.4092, allocations: 2.663 MB / 0.5033 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/0.4093, allocations: 0 / 0.5033 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/0.4095, allocations: 96 kB / 0.5033 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.545e-05/0.4096, allocations: 52 kB / 0.5034 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00495/0.4145, allocations: 3.31 MB / 0.5066 GB, free: 9.641 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.01442/0.4289, allocations: 8.618 MB / 0.515 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.4317, allocations: 2.002 MB / 0.517 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.4331, allocations: 0.929 MB / 0.5179 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/0.4438, allocations: 7.753 MB / 0.5255 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.4439, allocations: 51.88 kB / 0.5255 GB, free: 4.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 3.186e-06/0.4439, allocations: 0 / 0.5255 GB, free: 4.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03144/0.4753, allocations: 8.283 MB / 0.5336 GB, free: 12.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.4755, allocations: 95.11 kB / 0.5337 GB, free: 12.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/0.4772, allocations: 1.354 MB / 0.535 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.4774, allocations: 53.7 kB / 0.5351 GB, free: 11.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007208/0.4781, allocations: 1.054 MB / 0.5361 GB, free: 9.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.4787, allocations: 0.6239 MB / 0.5367 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.4789, allocations: 194.8 kB / 0.5369 GB, free: 9.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.514e-05/0.479, allocations: 301.1 kB / 0.5372 GB, free: 8.871 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.4804, allocations: 0.8171 MB / 0.538 GB, free: 8.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.4823, allocations: 1.654 MB / 0.5396 GB, free: 6.004 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003475/0.4858, allocations: 2.61 MB / 0.5422 GB, free: 3.012 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.4858, allocations: 8 kB / 0.5422 GB, free: 3.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006879/0.4927, allocations: 3.049 MB / 0.5451 GB, free: 15.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.4928, allocations: 16 kB / 0.5452 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/0.4928, allocations: 28 kB / 0.5452 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/0.4962, allocations: 0.5341 MB / 0.5457 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003603/0.4998, allocations: 0.7997 MB / 0.5465 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008508/0.5083, allocations: 7.492 MB / 0.5538 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.5103, allocations: 139.8 kB / 0.5539 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/0.5105, allocations: 147.9 kB / 0.5541 GB, free: 6.176 MB / 430.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.0009818/0.5115, allocations: 458.1 kB / 0.5545 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003375/0.5119, allocations: 165.9 kB / 0.5547 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007073/0.5189, allocations: 2.59 MB / 0.5572 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.519, allocations: 20 kB / 0.5572 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.519, allocations: 0 / 0.5572 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.519, allocations: 11.95 kB / 0.5572 GB, free: 2.902 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009854/0.5289, allocations: 4.774 MB / 0.5619 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/0.5289, allocations: 12 kB / 0.5619 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/0.5305, allocations: 423.5 kB / 0.5623 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003539/0.5341, allocations: 0.5548 MB / 0.5628 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.5342, allocations: 91.95 kB / 0.5629 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007697/0.5419, allocations: 7.284 MB / 0.57 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.828e-05/0.542, allocations: 15.94 kB / 0.5701 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0069/0.5489, allocations: 3.481 MB / 0.5735 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004509/0.5494, allocations: 250.9 kB / 0.5737 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.5496, allocations: 52 kB / 0.5738 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.5506, allocations: 83.81 kB / 0.5738 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.5509, allocations: 188.7 kB / 0.574 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.5511, allocations: 99.95 kB / 0.5741 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001124/0.5522, allocations: 0.8851 MB / 0.575 GB, free: 15.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5522, allocations: 4 kB / 0.575 GB, free: 15.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003702/0.5559, allocations: 1.187 MB / 0.5761 GB, free: 14.48 MB / 462.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.002401/0.5584, allocations: 1.289 MB / 0.5774 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004656/0.563, allocations: 2.471 MB / 0.5798 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.5631, allocations: 0 / 0.5798 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002021/0.5651, allocations: 1.426 MB / 0.5812 GB, free: 9.207 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/0.5688, allocations: 329.8 kB / 0.5815 GB, free: 8.887 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006498/0.5753, allocations: 5.067 MB / 0.5865 GB, free: 3.641 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.5765, allocations: 1.425 MB / 0.5879 GB, free: 2.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001988/0.5785, allocations: 474.5 kB / 0.5883 GB, free: 1.711 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006282/0.5791, allocations: 287.2 kB / 0.5886 GB, free: 1.43 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5791, allocations: 4 kB / 0.5886 GB, free: 1.426 MB / 462.1 MB Notification: Performance of Templates: time 0.2297/0.8088, allocations: 39.56 MB / 0.6272 GB, free: 120.7 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)