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.001103/0.001103, allocations: 108.7 kB / 16.37 MB, free: 6.465 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.001135/0.001135, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08276/0.08276, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.00144, allocations: 63.64 kB / 371.7 MB, free: 50.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09882, allocations: 53.61 MB / 425.4 MB, free: 13.29 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.03454/0.1334, allocations: 29.55 MB / 454.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03228/0.1657, allocations: 28.7 MB / 483.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1675, allocations: 23.88 kB / 483.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.1692, allocations: 0.6514 MB / 484.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006053/0.1753, allocations: 2.18 MB / 486.5 MB, free: 168 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0106/0.1859, allocations: 3.856 MB / 490.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004142/0.1901, allocations: 2.848 MB / 493.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.1922, allocations: 1.681 MB / 494.8 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.1939, allocations: 1.317 MB / 496.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.1958, allocations: 1.487 MB / 497.6 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003997/0.1963, allocations: 260 kB / 497.9 MB, free: 4.633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009776/0.206, allocations: 3.113 MB / 0.4893 GB, free: 1.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.2072, allocations: 0.5998 MB / 0.4899 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002109/0.2093, allocations: 1.303 MB / 0.4911 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01782/0.2272, allocations: 5.987 MB / 0.497 GB, free: 9.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2272, allocations: 0 / 0.497 GB, free: 9.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2272, allocations: 0 / 0.497 GB, free: 9.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.522e-05/0.2273, allocations: 0 / 0.497 GB, free: 9.598 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.006143/0.2334, allocations: 3.08 MB / 0.5 GB, free: 6.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.2335, allocations: 12.03 kB / 0.5 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.2358, allocations: 0.5402 MB / 0.5005 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.2381, allocations: 1.302 MB / 0.5018 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.2384, allocations: 224.1 kB / 0.502 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003557/0.2387, allocations: 227.8 kB / 0.5022 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004423/0.2431, allocations: 2.667 MB / 0.5048 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.359e-05/0.2432, allocations: 7.938 kB / 0.5048 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001948/0.2434, allocations: 84 kB / 0.5049 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.021e-05/0.2435, allocations: 56 kB / 0.505 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1966/0.4401, allocations: 3.299 MB / 0.5082 GB, free: 76 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.01338/0.4535, allocations: 8.64 MB / 0.5166 GB, free: 71.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.4559, allocations: 2.012 MB / 0.5186 GB, free: 70.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.4573, allocations: 0.9263 MB / 0.5195 GB, free: 70.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.4677, allocations: 7.862 MB / 0.5272 GB, free: 63.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.4678, allocations: 47.5 kB / 0.5272 GB, free: 63.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 2.846e-06/0.4678, allocations: 1.625 kB / 0.5272 GB, free: 63.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.0285/0.4963, allocations: 8.21 MB / 0.5352 GB, free: 59.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.4964, allocations: 99.2 kB / 0.5353 GB, free: 59.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.4979, allocations: 1.354 MB / 0.5367 GB, free: 58.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.4981, allocations: 57.2 kB / 0.5367 GB, free: 58.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004869/0.4986, allocations: 1.045 MB / 0.5377 GB, free: 57.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003644/0.499, allocations: 0.6266 MB / 0.5383 GB, free: 57.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005544/0.4995, allocations: 480.8 kB / 0.5388 GB, free: 56.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.462e-05/0.4996, allocations: 313.3 kB / 0.5391 GB, free: 56.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.5007, allocations: 0.8092 MB / 0.5399 GB, free: 55.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.5023, allocations: 1.658 MB / 0.5415 GB, free: 53.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/0.5051, allocations: 2.602 MB / 0.5441 GB, free: 50.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.5051, allocations: 8 kB / 0.5441 GB, free: 50.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00583/0.5109, allocations: 3.036 MB / 0.547 GB, free: 47.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.511, allocations: 22.33 kB / 0.547 GB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/0.511, allocations: 28 kB / 0.5471 GB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003018/0.5141, allocations: 0.5167 MB / 0.5476 GB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/0.5175, allocations: 0.8035 MB / 0.5484 GB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006824/0.5244, allocations: 8.05 MB / 0.5562 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001968/0.5264, allocations: 91.81 kB / 0.5563 GB, free: 37.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.5266, allocations: 151.9 kB / 0.5565 GB, free: 37.38 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.0007558/0.5274, allocations: 447.6 kB / 0.5569 GB, free: 36.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003031/0.5277, allocations: 168.6 kB / 0.557 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005807/0.5335, allocations: 2.584 MB / 0.5596 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.5336, allocations: 23.94 kB / 0.5596 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5336, allocations: 3.984 kB / 0.5596 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.5336, allocations: 11.97 kB / 0.5596 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00857/0.5422, allocations: 4.754 MB / 0.5643 GB, free: 29.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.5422, allocations: 12 kB / 0.5643 GB, free: 29.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.5437, allocations: 414.1 kB / 0.5647 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002999/0.5467, allocations: 0.5493 MB / 0.5652 GB, free: 28.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001697/0.5468, allocations: 86.61 kB / 0.5653 GB, free: 28.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006122/0.553, allocations: 7.829 MB / 0.5729 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.125e-05/0.553, allocations: 19.88 kB / 0.5729 GB, free: 19.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005918/0.559, allocations: 3.458 MB / 0.5763 GB, free: 16.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005217/0.5595, allocations: 250.8 kB / 0.5766 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.5597, allocations: 55.98 kB / 0.5766 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009615/0.5607, allocations: 50.66 kB / 0.5767 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/0.561, allocations: 190.1 kB / 0.5768 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.5611, allocations: 95.91 kB / 0.5769 GB, free: 15.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008876/0.562, allocations: 0.8928 MB / 0.5778 GB, free: 14.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.562, allocations: 0 / 0.5778 GB, free: 14.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003338/0.5654, allocations: 1.196 MB / 0.579 GB, free: 13.6 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.00272/0.5681, allocations: 1.311 MB / 0.5803 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004448/0.5726, allocations: 2.485 MB / 0.5827 GB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/0.5726, allocations: 6.625 kB / 0.5827 GB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.5744, allocations: 1.431 MB / 0.5841 GB, free: 8.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.5764, allocations: 348.5 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.005303/0.5817, allocations: 3.983 MB / 0.5883 GB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006814/0.5824, allocations: 1.435 MB / 0.5897 GB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00144/0.5839, allocations: 467.8 kB / 0.5901 GB, free: 2.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005649/0.5844, allocations: 286.6 kB / 0.5904 GB, free: 2.277 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5844, allocations: 0 / 0.5904 GB, free: 2.277 MB / 382.1 MB Notification: Performance of Templates: time 0.06294/0.6474, allocations: 41.13 MB / 0.6306 GB, free: 9.625 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)