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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001225/0.001225, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001458/0.001458, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1995/0.1995, allocations: 15.26 MB / 306.2 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003428, allocations: 8 kB / 371.4 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.319, allocations: 54.62 MB / 426 MB, free: 39.98 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.008855/0.3279, allocations: 9.445 MB / 435.4 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02418/0.3521, allocations: 24.3 MB / 459.7 MB, free: 18.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.3542, allocations: 45.31 kB / 459.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.3561, allocations: 0.6076 MB / 460.4 MB, free: 18.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005963/0.362, allocations: 2.282 MB / 462.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00864/0.3707, allocations: 3.449 MB / 466.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003325/0.3741, allocations: 1.896 MB / 468 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001589/0.3757, allocations: 1.296 MB / 469.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001412/0.3771, allocations: 0.9856 MB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.3788, allocations: 1.272 MB / 471.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002962/0.3791, allocations: 134.9 kB / 471.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01086/0.3899, allocations: 3.42 MB / 475.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.391, allocations: 469.7 kB / 475.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.3922, allocations: 453.4 kB / 476 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00962/0.4018, allocations: 3.598 MB / 479.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4019, allocations: 0 / 479.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4019, allocations: 0 / 479.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.402, allocations: 0 / 479.6 MB, free: 10.32 MB / 350.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.007344/0.4093, allocations: 2.583 MB / 482.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.4094, allocations: 9.594 kB / 482.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002922/0.4123, allocations: 0.541 MB / 482.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.4148, allocations: 1.194 MB / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.415, allocations: 222.3 kB / 484.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005181/0.4156, allocations: 221.6 kB / 484.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004606/0.4202, allocations: 2.643 MB / 487 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.241e-05/0.4202, allocations: 7.875 kB / 487 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.4205, allocations: 91.25 kB / 487.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.4205, allocations: 53.62 kB / 487.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00511/0.4256, allocations: 3.292 MB / 490.5 MB, free: 5.066 MB / 350.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.01217/0.4378, allocations: 8.59 MB / 499 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002432/0.4403, allocations: 1.994 MB / 0.4893 GB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.4506, allocations: 7.696 MB / 0.4968 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4506, allocations: 47.88 kB / 0.4969 GB, free: 1.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 2.575e-06/0.4506, allocations: 0 / 0.4969 GB, free: 1.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=181): time 0.03023/0.4809, allocations: 8.261 MB / 0.5049 GB, free: 9.402 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.481, allocations: 95.11 kB / 0.505 GB, free: 9.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.4826, allocations: 1.346 MB / 0.5063 GB, free: 7.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.4829, allocations: 57.7 kB / 0.5064 GB, free: 7.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006692/0.4835, allocations: 1.046 MB / 0.5074 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005374/0.4841, allocations: 0.6277 MB / 0.508 GB, free: 6.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.4842, allocations: 52 kB / 0.5081 GB, free: 6.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.4844, allocations: 395.1 kB / 0.5084 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.4858, allocations: 0.8092 MB / 0.5092 GB, free: 4.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.4875, allocations: 1.634 MB / 0.5108 GB, free: 2.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.4892, allocations: 1.044 MB / 0.5118 GB, free: 1.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.4892, allocations: 8 kB / 0.5119 GB, free: 1.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006913/0.4961, allocations: 3.026 MB / 0.5148 GB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.857e-05/0.4962, allocations: 20.3 kB / 0.5148 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-05/0.4962, allocations: 32 kB / 0.5149 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003455/0.4997, allocations: 0.5299 MB / 0.5154 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003763/0.5035, allocations: 0.8036 MB / 0.5162 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008873/0.5124, allocations: 7.519 MB / 0.5235 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002406/0.5148, allocations: 143.8 kB / 0.5236 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003515/0.5152, allocations: 148 kB / 0.5238 GB, free: 5.004 MB / 398.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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 3 {1 6,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001039/0.5162, allocations: 456.8 kB / 0.5242 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.5166, allocations: 161.9 kB / 0.5244 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007248/0.5238, allocations: 2.593 MB / 0.5269 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.5239, allocations: 24 kB / 0.5269 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.5239, allocations: 0 / 0.5269 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.5239, allocations: 11.95 kB / 0.5269 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.5346, allocations: 4.747 MB / 0.5316 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/0.5347, allocations: 12 kB / 0.5316 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/0.5364, allocations: 423.3 kB / 0.532 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003437/0.5399, allocations: 0.5666 MB / 0.5325 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/0.5401, allocations: 79.97 kB / 0.5326 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007837/0.5479, allocations: 7.324 MB / 0.5398 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.317e-05/0.548, allocations: 15.94 kB / 0.5398 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007484/0.5555, allocations: 4.154 MB / 0.5438 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006432/0.5561, allocations: 250.8 kB / 0.5441 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.5564, allocations: 55.98 kB / 0.5441 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5575, allocations: 75.83 kB / 0.5442 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/0.5578, allocations: 200.8 kB / 0.5444 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/0.5579, allocations: 91.97 kB / 0.5445 GB, free: 14.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.5591, allocations: 0.881 MB / 0.5454 GB, free: 13.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5591, allocations: 0 / 0.5454 GB, free: 13.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004001/0.5631, allocations: 1.163 MB / 0.5465 GB, free: 12.26 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 6,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002452/0.5656, allocations: 1.283 MB / 0.5477 GB, free: 10.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004508/0.5701, allocations: 2.448 MB / 0.5501 GB, free: 8.504 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/0.5701, allocations: 0 / 0.5501 GB, free: 8.504 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.5721, allocations: 1.411 MB / 0.5515 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.5737, allocations: 297.7 kB / 0.5518 GB, free: 6.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006401/0.5801, allocations: 4.848 MB / 0.5565 GB, free: 1.719 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.5811, allocations: 1.472 MB / 0.558 GB, free: 220 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.583, allocations: 474.6 kB / 0.5584 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005949/0.5836, allocations: 287.2 kB / 0.5587 GB, free: 15.46 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5836, allocations: 0 / 0.5587 GB, free: 15.46 MB / 446.1 MB Notification: Performance of Templates: time 0.2348/0.8184, allocations: 37.82 MB / 0.5956 GB, free: 135.7 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: