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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.1048/0.1048, allocations: 15.29 MB / 31.09 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 198.1 kB / 36.15 MB, free: 2.137 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 264 MB, free: 5.012 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009582/0.0009581, allocations: 115.2 kB / 318.4 MB, free: 3.457 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009588/0.0009591, allocations: 58.44 kB / 382.7 MB, free: 49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08063, allocations: 53.61 MB / 436.3 MB, free: 1.074 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.03325/0.1139, allocations: 28.5 MB / 464.8 MB, free: 4.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02881/0.1428, allocations: 28.49 MB / 493.3 MB, free: 8.066 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.1449, allocations: 51.62 kB / 493.4 MB, free: 8.016 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.1466, allocations: 0.5782 MB / 493.9 MB, free: 7.434 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006425/0.153, allocations: 1.898 MB / 495.8 MB, free: 5.523 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.1636, allocations: 3.376 MB / 499.2 MB, free: 2.129 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003999/0.1677, allocations: 2.774 MB / 0.4902 GB, free: 15.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.1694, allocations: 1.44 MB / 0.4916 GB, free: 13.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.1709, allocations: 1.278 MB / 0.4929 GB, free: 12.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.1724, allocations: 1.448 MB / 0.4943 GB, free: 11.12 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.1727, allocations: 175.9 kB / 0.4945 GB, free: 10.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008449/0.1812, allocations: 2.967 MB / 0.4974 GB, free: 7.977 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007009/0.1819, allocations: 0.5294 MB / 0.4979 GB, free: 7.445 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.1833, allocations: 1.209 MB / 0.499 GB, free: 6.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.1942, allocations: 5.574 MB / 0.5045 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1942, allocations: 0 / 0.5045 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1942, allocations: 0 / 0.5045 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.412e-05/0.1943, allocations: 0 / 0.5045 GB, free: 0.6367 MB / 378.7 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.1797/0.374, allocations: 3.066 MB / 0.5075 GB, free: 69.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.374, allocations: 13.72 kB / 0.5075 GB, free: 69.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002925/0.377, allocations: 0.5365 MB / 0.508 GB, free: 69.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/0.3802, allocations: 1.273 MB / 0.5093 GB, free: 68.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.3804, allocations: 224.3 kB / 0.5095 GB, free: 68.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000597/0.381, allocations: 222.5 kB / 0.5097 GB, free: 68.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004752/0.3858, allocations: 2.674 MB / 0.5123 GB, free: 68.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.3859, allocations: 5.312 kB / 0.5123 GB, free: 68.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.386, allocations: 86.5 kB / 0.5124 GB, free: 68.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.17e-05/0.3861, allocations: 54.47 kB / 0.5124 GB, free: 68.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005033/0.3911, allocations: 3.31 MB / 0.5157 GB, free: 68.59 MB / 378.7 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.01296/0.4041, allocations: 8.656 MB / 0.5241 GB, free: 63.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002411/0.4066, allocations: 2.001 MB / 0.5261 GB, free: 62.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.4079, allocations: 0.9277 MB / 0.527 GB, free: 62.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00927/0.4172, allocations: 7.902 MB / 0.5347 GB, free: 55.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.4173, allocations: 54.42 kB / 0.5348 GB, free: 55.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.376e-06/0.4173, allocations: 0 / 0.5348 GB, free: 55.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.027/0.4443, allocations: 8.206 MB / 0.5428 GB, free: 50.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4443, allocations: 103 kB / 0.5429 GB, free: 50.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.4456, allocations: 1.347 MB / 0.5442 GB, free: 49.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.744e-05/0.4457, allocations: 53.7 kB / 0.5442 GB, free: 49.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.4461, allocations: 1.056 MB / 0.5453 GB, free: 48.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000318/0.4464, allocations: 0.6221 MB / 0.5459 GB, free: 47.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005144/0.4469, allocations: 480.8 kB / 0.5463 GB, free: 47.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.927e-05/0.4469, allocations: 305.1 kB / 0.5466 GB, free: 46.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.448, allocations: 0.8098 MB / 0.5474 GB, free: 46.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.4494, allocations: 1.657 MB / 0.549 GB, free: 44.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.4519, allocations: 2.605 MB / 0.5516 GB, free: 41.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.4519, allocations: 8 kB / 0.5516 GB, free: 41.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.005443/0.4574, allocations: 3.043 MB / 0.5546 GB, free: 38.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.4574, allocations: 17.88 kB / 0.5546 GB, free: 38.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.028e-05/0.4575, allocations: 29.66 kB / 0.5546 GB, free: 38.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/0.4603, allocations: 0.5168 MB / 0.5551 GB, free: 37.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003487/0.4638, allocations: 0.8033 MB / 0.5559 GB, free: 36.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006233/0.47, allocations: 7.472 MB / 0.5632 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.472, allocations: 136.9 kB / 0.5633 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/0.4723, allocations: 148 kB / 0.5635 GB, free: 28.46 MB / 378.7 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.0007354/0.473, allocations: 456.8 kB / 0.5639 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.4734, allocations: 164.6 kB / 0.5641 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005889/0.4793, allocations: 2.576 MB / 0.5666 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4793, allocations: 22.69 kB / 0.5666 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4793, allocations: 0 / 0.5666 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.4793, allocations: 14.64 kB / 0.5666 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008113/0.4875, allocations: 4.762 MB / 0.5713 GB, free: 20.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/0.4875, allocations: 17.36 kB / 0.5713 GB, free: 20.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/0.4889, allocations: 415.4 kB / 0.5717 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002908/0.4919, allocations: 0.5525 MB / 0.5722 GB, free: 19.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001923/0.4921, allocations: 75.97 kB / 0.5723 GB, free: 19.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005575/0.4977, allocations: 7.26 MB / 0.5794 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.829e-06/0.4977, allocations: 26.5 kB / 0.5794 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008536/0.5062, allocations: 6.168 MB / 0.5854 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.5066, allocations: 246.9 kB / 0.5857 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.5068, allocations: 55.98 kB / 0.5857 GB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009779/0.5078, allocations: 81.22 kB / 0.5858 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.5081, allocations: 194 kB / 0.586 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5082, allocations: 91.97 kB / 0.5861 GB, free: 4.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008202/0.509, allocations: 0.8889 MB / 0.5869 GB, free: 3.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.509, allocations: 0 / 0.5869 GB, free: 3.469 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003568/0.5126, allocations: 1.304 MB / 0.5882 GB, free: 2.164 MB / 378.7 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.002091/0.5147, allocations: 1.275 MB / 0.5894 GB, free: 1.086 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004322/0.519, allocations: 2.46 MB / 0.5918 GB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.5191, allocations: 6.656 kB / 0.5918 GB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.5215, allocations: 1.427 MB / 0.5932 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.5237, allocations: 330.5 kB / 0.5936 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007175/0.5309, allocations: 5.908 MB / 0.5993 GB, free: 6.922 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.5321, allocations: 1.48 MB / 0.6008 GB, free: 5.438 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002064/0.5341, allocations: 476.2 kB / 0.6012 GB, free: 5.004 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.5348, allocations: 294.8 kB / 0.6015 GB, free: 4.723 MB / 394.7 MB Notification: Performance of SimCode: time 1.312e-06/0.5348, allocations: 0 / 0.6015 GB, free: 4.723 MB / 394.7 MB Notification: Performance of Templates: time 0.06219/0.597, allocations: 40.47 MB / 0.641 GB, free: 12.56 MB / 442.7 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)