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.001192/0.001192, allocations: 102.2 kB / 16.27 MB, free: 6 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.001216/0.001216, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08565/0.08565, allocations: 15.31 MB / 306.4 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 61.19 kB / 371 MB, free: 50.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.0959, allocations: 53.61 MB / 424.6 MB, free: 14.03 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.037/0.133, allocations: 29.76 MB / 454.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03186/0.1649, allocations: 28.7 MB / 483 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.1667, allocations: 23.88 kB / 483.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.1687, allocations: 0.6475 MB / 483.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006766/0.1755, allocations: 2.18 MB / 485.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01077/0.1863, allocations: 3.848 MB / 489.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004448/0.1908, allocations: 2.836 MB / 492.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002679/0.1935, allocations: 1.681 MB / 494.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.196, allocations: 1.325 MB / 495.6 MB, free: 6.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.1988, allocations: 1.475 MB / 497.1 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.1998, allocations: 260 kB / 497.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00989/0.2097, allocations: 3.109 MB / 0.4887 GB, free: 2.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.2109, allocations: 0.5998 MB / 0.4893 GB, free: 1.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002441/0.2133, allocations: 1.303 MB / 0.4905 GB, free: 160 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.2271, allocations: 5.964 MB / 0.4964 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.2271, allocations: 3.938 kB / 0.4964 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2271, allocations: 4 kB / 0.4964 GB, free: 10.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001446/0.2273, allocations: 0 / 0.4964 GB, free: 10.16 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.007302/0.2346, allocations: 3.079 MB / 0.4994 GB, free: 7.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.2347, allocations: 11.97 kB / 0.4994 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002794/0.2375, allocations: 0.5519 MB / 0.4999 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002617/0.2401, allocations: 1.256 MB / 0.5012 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.2404, allocations: 224.1 kB / 0.5014 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006899/0.2411, allocations: 227.8 kB / 0.5016 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005488/0.2466, allocations: 2.671 MB / 0.5042 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.434e-05/0.2467, allocations: 0 / 0.5042 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.247, allocations: 92 kB / 0.5043 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.085e-05/0.247, allocations: 52 kB / 0.5043 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1688/0.4159, allocations: 3.304 MB / 0.5076 GB, free: 76.46 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.01568/0.4316, allocations: 8.702 MB / 0.5161 GB, free: 72.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.4345, allocations: 2.006 MB / 0.518 GB, free: 71.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.4361, allocations: 0.9286 MB / 0.5189 GB, free: 70.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.4475, allocations: 7.879 MB / 0.5266 GB, free: 64.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.4476, allocations: 45.28 kB / 0.5267 GB, free: 64.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.386e-06/0.4476, allocations: 0 / 0.5267 GB, free: 64.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03013/0.4778, allocations: 8.207 MB / 0.5347 GB, free: 60.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.4778, allocations: 102.5 kB / 0.5348 GB, free: 59.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.4794, allocations: 1.358 MB / 0.5361 GB, free: 59.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/0.4797, allocations: 57.2 kB / 0.5362 GB, free: 59.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004688/0.4801, allocations: 1.046 MB / 0.5372 GB, free: 58.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004927/0.4807, allocations: 0.6218 MB / 0.5378 GB, free: 57.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006877/0.4813, allocations: 487.1 kB / 0.5383 GB, free: 57.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.4814, allocations: 307.7 kB / 0.5385 GB, free: 56.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.4826, allocations: 0.8132 MB / 0.5393 GB, free: 56.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.4841, allocations: 1.65 MB / 0.541 GB, free: 54.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002832/0.4869, allocations: 2.612 MB / 0.5435 GB, free: 51.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/0.487, allocations: 11.75 kB / 0.5435 GB, free: 51.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006205/0.4932, allocations: 3.032 MB / 0.5465 GB, free: 48.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.4933, allocations: 17.97 kB / 0.5465 GB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.503e-05/0.4933, allocations: 30.69 kB / 0.5465 GB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0029/0.4962, allocations: 0.5205 MB / 0.547 GB, free: 47.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003555/0.4998, allocations: 0.7997 MB / 0.5478 GB, free: 46.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006886/0.5067, allocations: 8.039 MB / 0.5557 GB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/0.5087, allocations: 95.8 kB / 0.5558 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002711/0.509, allocations: 144 kB / 0.5559 GB, free: 37.96 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.0007841/0.5098, allocations: 459.6 kB / 0.5563 GB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003622/0.5101, allocations: 165.9 kB / 0.5565 GB, free: 37.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005881/0.516, allocations: 2.58 MB / 0.559 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.5161, allocations: 23.94 kB / 0.559 GB, free: 34.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5161, allocations: 0 / 0.559 GB, free: 34.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/0.5161, allocations: 7.969 kB / 0.559 GB, free: 34.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008747/0.5249, allocations: 4.759 MB / 0.5637 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/0.5249, allocations: 15.98 kB / 0.5637 GB, free: 29.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/0.5265, allocations: 418 kB / 0.5641 GB, free: 29.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003063/0.5296, allocations: 0.5467 MB / 0.5646 GB, free: 28.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/0.5299, allocations: 79.97 kB / 0.5647 GB, free: 28.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006179/0.5361, allocations: 7.849 MB / 0.5724 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.904e-06/0.5361, allocations: 15.94 kB / 0.5724 GB, free: 20.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006047/0.5422, allocations: 3.467 MB / 0.5758 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004362/0.5427, allocations: 246.9 kB / 0.576 GB, free: 16.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/0.5429, allocations: 55.98 kB / 0.5761 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009833/0.5439, allocations: 50.66 kB / 0.5761 GB, free: 16.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002619/0.5442, allocations: 188.8 kB / 0.5763 GB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.5443, allocations: 91.97 kB / 0.5764 GB, free: 16.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009132/0.5453, allocations: 0.8927 MB / 0.5772 GB, free: 15.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5453, allocations: 0 / 0.5772 GB, free: 15.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003429/0.5487, allocations: 1.196 MB / 0.5784 GB, free: 14.18 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.002227/0.551, allocations: 1.309 MB / 0.5797 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006113/0.5571, allocations: 2.652 MB / 0.5823 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.5571, allocations: 0 / 0.5823 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.5591, allocations: 1.437 MB / 0.5837 GB, free: 9.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.5613, allocations: 339.2 kB / 0.584 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005599/0.5669, allocations: 4.08 MB / 0.588 GB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007483/0.5677, allocations: 1.424 MB / 0.5894 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000906/0.5686, allocations: 367.2 kB / 0.5897 GB, free: 2.922 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5686, allocations: 0 / 0.5897 GB, free: 2.922 MB / 382.1 MB Notification: Performance of Templates: time 0.08701/0.6556, allocations: 81.63 MB / 0.6695 GB, free: 1.652 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)