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.0009023/0.0009024, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 173 kB / 16.92 MB, free: 6.652 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.555/1.555, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2056/0.2056, allocations: 15.27 MB / 307.4 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.000349, allocations: 12 kB / 372.7 MB, free: 3.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3049, allocations: 54.61 MB / 427.4 MB, free: 41.21 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.03019/0.3351, allocations: 30.46 MB / 457.8 MB, free: 29.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02533/0.3605, allocations: 28.34 MB / 486.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.3625, allocations: 47.62 kB / 486.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.3643, allocations: 0.5933 MB / 486.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006315/0.3706, allocations: 1.938 MB / 488.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.3807, allocations: 3.377 MB / 492.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003542/0.3843, allocations: 2.741 MB / 494.9 MB, free: 228 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002135/0.3865, allocations: 1.361 MB / 496.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002686/0.3892, allocations: 1.206 MB / 497.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.392, allocations: 1.359 MB / 498.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000425/0.3924, allocations: 140 kB / 498.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01053/0.4029, allocations: 3.002 MB / 0.4902 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.404, allocations: 493.1 kB / 0.4906 GB, free: 9.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002204/0.4062, allocations: 1.184 MB / 0.4918 GB, free: 8.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008535/0.4148, allocations: 4.363 MB / 0.496 GB, free: 5.324 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.4148, allocations: 0 / 0.496 GB, free: 5.324 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.31e-06/0.4149, allocations: 0.6562 kB / 0.496 GB, free: 5.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001435/0.415, allocations: 0 / 0.496 GB, free: 5.324 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.006567/0.4216, allocations: 2.587 MB / 0.4986 GB, free: 2.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.4217, allocations: 12.03 kB / 0.4986 GB, free: 2.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002765/0.4244, allocations: 0.5373 MB / 0.4991 GB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.4271, allocations: 1.244 MB / 0.5003 GB, free: 1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/0.4273, allocations: 232 kB / 0.5005 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000703/0.4281, allocations: 227.8 kB / 0.5008 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005838/0.4339, allocations: 2.663 MB / 0.5034 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.265e-05/0.434, allocations: 0 / 0.5034 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.4342, allocations: 92 kB / 0.5035 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.357e-05/0.4343, allocations: 52 kB / 0.5035 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005643/0.4399, allocations: 3.31 MB / 0.5067 GB, free: 10.33 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.01455/0.4545, allocations: 8.622 MB / 0.5152 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/0.4574, allocations: 2.006 MB / 0.5171 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.4589, allocations: 0.9251 MB / 0.518 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/0.4702, allocations: 7.749 MB / 0.5256 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.4702, allocations: 47.88 kB / 0.5256 GB, free: 5.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 3.316e-06/0.4702, allocations: 0 / 0.5256 GB, free: 5.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03283/0.5031, allocations: 8.291 MB / 0.5337 GB, free: 13.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.5032, allocations: 95.11 kB / 0.5338 GB, free: 13.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.505, allocations: 1.358 MB / 0.5351 GB, free: 11.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002722/0.5053, allocations: 57.73 kB / 0.5352 GB, free: 11.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006893/0.506, allocations: 1.042 MB / 0.5362 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005954/0.5066, allocations: 0.6317 MB / 0.5368 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002808/0.5069, allocations: 194.8 kB / 0.537 GB, free: 9.844 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.245e-05/0.507, allocations: 301.1 kB / 0.5373 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.5084, allocations: 0.8132 MB / 0.5381 GB, free: 8.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.5103, allocations: 1.65 MB / 0.5397 GB, free: 6.688 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003518/0.5138, allocations: 2.61 MB / 0.5423 GB, free: 3.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.669e-05/0.5139, allocations: 12 kB / 0.5423 GB, free: 3.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007208/0.5211, allocations: 3.042 MB / 0.5452 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.171e-05/0.5212, allocations: 23.98 kB / 0.5453 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.669e-05/0.5212, allocations: 28 kB / 0.5453 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003542/0.5248, allocations: 0.5419 MB / 0.5458 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004024/0.5288, allocations: 0.7958 MB / 0.5466 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008717/0.5376, allocations: 7.492 MB / 0.5539 GB, free: 7.137 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/0.5398, allocations: 139.7 kB / 0.554 GB, free: 7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002872/0.5401, allocations: 147.9 kB / 0.5542 GB, free: 6.855 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.0009367/0.541, allocations: 459.1 kB / 0.5546 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003174/0.5413, allocations: 165.9 kB / 0.5548 GB, free: 6.234 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00708/0.5484, allocations: 2.594 MB / 0.5573 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.5485, allocations: 20 kB / 0.5573 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.5485, allocations: 0 / 0.5573 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.934e-05/0.5485, allocations: 7.969 kB / 0.5573 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009663/0.5582, allocations: 4.762 MB / 0.562 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/0.5582, allocations: 12 kB / 0.562 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/0.5599, allocations: 424.3 kB / 0.5624 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003624/0.5636, allocations: 0.5587 MB / 0.563 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/0.5638, allocations: 83.97 kB / 0.563 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007639/0.5715, allocations: 7.292 MB / 0.5702 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/0.5715, allocations: 19.88 kB / 0.5702 GB, free: 5.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007091/0.5786, allocations: 3.481 MB / 0.5736 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005065/0.5791, allocations: 246.9 kB / 0.5738 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.5794, allocations: 55.98 kB / 0.5739 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.5805, allocations: 83.75 kB / 0.5739 GB, free: 1.523 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000298/0.5808, allocations: 188.8 kB / 0.5741 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.5809, allocations: 99.91 kB / 0.5742 GB, free: 1.242 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.582, allocations: 0.8889 MB / 0.5751 GB, free: 360 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.582, allocations: 0 / 0.5751 GB, free: 360 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.003662/0.5857, allocations: 1.187 MB / 0.5762 GB, free: 15.16 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.002485/0.5882, allocations: 1.291 MB / 0.5775 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004739/0.593, allocations: 2.459 MB / 0.5799 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.593, allocations: 4.438 kB / 0.5799 GB, free: 11.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.5951, allocations: 1.426 MB / 0.5813 GB, free: 9.895 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003906/0.599, allocations: 334.1 kB / 0.5816 GB, free: 9.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006909/0.6059, allocations: 5.105 MB / 0.5866 GB, free: 4.277 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.607, allocations: 1.429 MB / 0.588 GB, free: 2.812 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009858/0.608, allocations: 355.2 kB / 0.5883 GB, free: 2.465 MB / 462.1 MB Notification: Performance of SimCode: time 8.91e-07/0.608, allocations: 0 / 0.5883 GB, free: 2.465 MB / 462.1 MB Notification: Performance of Templates: time 0.2571/0.8651, allocations: 81.48 MB / 0.6679 GB, free: 84.19 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)