Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007826/0.007826, allocations: 107.9 kB / 15.74 MB, free: 5.578 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.001743/0.001743, allocations: 189.5 kB / 16.67 MB, free: 5.516 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09765/0.09765, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 67.89 kB / 425.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1158, allocations: 53.62 MB / 478.8 MB, free: 5.766 MB / 350.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.H2O_ElectrochemicalCell): time 0.03584/0.1517, allocations: 27.8 MB / 0.4947 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2831/0.4348, allocations: 19.36 MB / 0.5136 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.4361, allocations: 20.62 kB / 0.5136 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.4375, allocations: 0.4965 MB / 0.5141 GB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.4412, allocations: 1.227 MB / 0.5153 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008994/0.4502, allocations: 2.835 MB / 0.5181 GB, free: 16.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004672/0.4549, allocations: 2.088 MB / 0.5201 GB, free: 16.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002388/0.4573, allocations: 1.349 MB / 0.5214 GB, free: 16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.459, allocations: 0.9118 MB / 0.5223 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.4607, allocations: 1.053 MB / 0.5234 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003661/0.4611, allocations: 203.2 kB / 0.5236 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009085/0.4701, allocations: 2.057 MB / 0.5256 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005887/0.4708, allocations: 474.9 kB / 0.526 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.4721, allocations: 0.9829 MB / 0.527 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01298/0.485, allocations: 4.2 MB / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4851, allocations: 0 / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4851, allocations: 0 / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.527e-05/0.4852, allocations: 1.031 kB / 0.5311 GB, free: 12.23 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004766/0.4899, allocations: 2.343 MB / 0.5334 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.49, allocations: 9.312 kB / 0.5334 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/0.4916, allocations: 446 kB / 0.5338 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.4931, allocations: 1.077 MB / 0.5349 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.4933, allocations: 182.7 kB / 0.535 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.4936, allocations: 168.6 kB / 0.5352 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003008/0.4966, allocations: 2.206 MB / 0.5373 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/0.4966, allocations: 6.875 kB / 0.5374 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.4968, allocations: 66.53 kB / 0.5374 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.557e-05/0.4969, allocations: 44.22 kB / 0.5375 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003943/0.5008, allocations: 2.674 MB / 0.5401 GB, free: 6.863 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.008824/0.5097, allocations: 7.232 MB / 0.5471 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.5114, allocations: 1.17 MB / 0.5483 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007666/0.5122, allocations: 0.5534 MB / 0.5488 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007359/0.5195, allocations: 5.124 MB / 0.5538 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.5196, allocations: 48.44 kB / 0.5539 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003943/0.52, allocations: 110.6 kB / 0.554 GB, free: 8.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.465e-06/0.52, allocations: 0 / 0.554 GB, free: 8.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.01672/0.5367, allocations: 4.804 MB / 0.5587 GB, free: 3.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/0.5368, allocations: 118.5 kB / 0.5588 GB, free: 3.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.5386, allocations: 1.478 MB / 0.5602 GB, free: 1.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.5387, allocations: 41.7 kB / 0.5603 GB, free: 1.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006115/0.5393, allocations: 0.8833 MB / 0.5611 GB, free: 0.625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.5396, allocations: 352.8 kB / 0.5615 GB, free: 292 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005296/0.5402, allocations: 361.8 kB / 0.5618 GB, free: 15.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5403, allocations: 301.1 kB / 0.5621 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.5413, allocations: 0.6273 MB / 0.5627 GB, free: 15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.5428, allocations: 1.331 MB / 0.564 GB, free: 13.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002493/0.5453, allocations: 1.917 MB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.196e-05/0.5453, allocations: 8 kB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005517/0.5509, allocations: 2.362 MB / 0.5682 GB, free: 8.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.5509, allocations: 16 kB / 0.5682 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.759e-05/0.551, allocations: 24 kB / 0.5682 GB, free: 8.762 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/0.5534, allocations: 382.7 kB / 0.5686 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/0.556, allocations: 0.563 MB / 0.5691 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008635/0.5647, allocations: 7.898 MB / 0.5769 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.5664, allocations: 87.62 kB / 0.5769 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000323/0.5668, allocations: 104 kB / 0.577 GB, free: 15.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008598/0.5677, allocations: 373.9 kB / 0.5774 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004095/0.5681, allocations: 125 kB / 0.5775 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004578/0.5727, allocations: 1.528 MB / 0.579 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/0.5727, allocations: 11.94 kB / 0.579 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.5727, allocations: 6.859 kB / 0.579 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.5727, allocations: 3.984 kB / 0.579 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007093/0.5798, allocations: 3.008 MB / 0.582 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.5799, allocations: 8 kB / 0.582 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/0.5807, allocations: 218.3 kB / 0.5822 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/0.5833, allocations: 404.5 kB / 0.5826 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.5834, allocations: 50.58 kB / 0.5826 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008264/0.5917, allocations: 7.703 MB / 0.5901 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.5917, allocations: 11.94 kB / 0.5901 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005152/0.5969, allocations: 2.171 MB / 0.5923 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.5976, allocations: 199.5 kB / 0.5925 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004769/0.5981, allocations: 27.98 kB / 0.5925 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.5991, allocations: 28 kB / 0.5925 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.5994, allocations: 113.6 kB / 0.5926 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.5995, allocations: 51.98 kB / 0.5927 GB, free: 14.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001693/0.6012, allocations: 1.013 MB / 0.5937 GB, free: 13.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6012, allocations: 0 / 0.5937 GB, free: 13.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00441/0.6057, allocations: 0.8159 MB / 0.5945 GB, free: 12.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00284/0.6085, allocations: 0.8746 MB / 0.5953 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003936/0.6125, allocations: 1.766 MB / 0.597 GB, free: 9.992 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.6125, allocations: 4 kB / 0.597 GB, free: 9.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.614, allocations: 0.9928 MB / 0.598 GB, free: 8.953 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.6162, allocations: 237.2 kB / 0.5982 GB, free: 8.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/0.6215, allocations: 2.826 MB / 0.601 GB, free: 5.918 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.6229, allocations: 1.22 MB / 0.6022 GB, free: 4.691 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001237/0.6242, allocations: 322.3 kB / 0.6025 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004832/0.6247, allocations: 182.6 kB / 0.6027 GB, free: 4.273 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6247, allocations: 0 / 0.6027 GB, free: 4.273 MB / 446.1 MB Notification: Performance of Templates: time 0.0475/0.6722, allocations: 28.02 MB / 0.63 GB, free: 8.543 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)