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.0009078/0.0009081, allocations: 91.77 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.001146/0.001146, allocations: 180.9 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.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2184/0.2184, allocations: 15.27 MB / 307.4 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003283, allocations: 8 kB / 372.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2783, allocations: 54.63 MB / 427.4 MB, free: 40.27 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.H2O_ElectrochemicalCell): time 0.02735/0.3057, allocations: 28.25 MB / 455.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.3238, allocations: 19.19 MB / 474.8 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.3255, allocations: 42.41 kB / 474.9 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.3268, allocations: 448.8 kB / 475.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003569/0.3304, allocations: 1.104 MB / 476.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00804/0.3385, allocations: 2.486 MB / 478.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.3414, allocations: 2.031 MB / 480.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.3426, allocations: 1.1 MB / 482 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007975/0.3434, allocations: 0.8068 MB / 482.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008522/0.3443, allocations: 0.9616 MB / 483.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.3444, allocations: 108 kB / 483.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008017/0.3525, allocations: 1.968 MB / 485.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005669/0.3531, allocations: 368 kB / 486.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009384/0.354, allocations: 0.9018 MB / 487.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004581/0.3586, allocations: 3.052 MB / 490.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3586, allocations: 0 / 490.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3587, allocations: 0 / 490.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.757e-05/0.3587, allocations: 0 / 490.2 MB, free: 4.77 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003447/0.3621, allocations: 1.996 MB / 492.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3622, allocations: 8.031 kB / 492.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.3637, allocations: 442.3 kB / 492.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.3652, allocations: 1.038 MB / 493.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.3653, allocations: 184.3 kB / 493.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.3655, allocations: 168.7 kB / 494 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00328/0.3688, allocations: 2.205 MB / 496.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.643e-05/0.3689, allocations: 3.938 kB / 496.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/0.369, allocations: 75.94 kB / 496.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.57e-05/0.3691, allocations: 40 kB / 496.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/0.3733, allocations: 2.68 MB / 499 MB, free: 13.01 MB / 366.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.01209/0.3854, allocations: 7.221 MB / 0.4943 GB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.3873, allocations: 1.192 MB / 0.4955 GB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008649/0.3882, allocations: 0.5487 MB / 0.496 GB, free: 4.859 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007576/0.3958, allocations: 5.049 MB / 0.501 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.3958, allocations: 43.06 kB / 0.501 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004824/0.3963, allocations: 106.6 kB / 0.5011 GB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.905e-06/0.3963, allocations: 4 kB / 0.5011 GB, free: 15.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.01985/0.4162, allocations: 4.823 MB / 0.5058 GB, free: 10.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.4163, allocations: 115.8 kB / 0.5059 GB, free: 10.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.4181, allocations: 1.478 MB / 0.5074 GB, free: 8.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.521e-05/0.4182, allocations: 49.64 kB / 0.5074 GB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005692/0.4187, allocations: 0.8933 MB / 0.5083 GB, free: 7.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.419, allocations: 343.2 kB / 0.5086 GB, free: 7.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.4192, allocations: 141.6 kB / 0.5088 GB, free: 7.105 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.4193, allocations: 301.1 kB / 0.5091 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009764/0.4203, allocations: 0.6169 MB / 0.5097 GB, free: 6.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.4217, allocations: 1.325 MB / 0.511 GB, free: 4.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/0.4241, allocations: 1.909 MB / 0.5128 GB, free: 2.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.4241, allocations: 8 kB / 0.5128 GB, free: 2.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005781/0.4299, allocations: 2.37 MB / 0.5151 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.43, allocations: 16 kB / 0.5152 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.752e-05/0.43, allocations: 23.94 kB / 0.5152 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/0.4329, allocations: 395.2 kB / 0.5156 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002449/0.4354, allocations: 0.55 MB / 0.5161 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008372/0.4438, allocations: 7.366 MB / 0.5233 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.4454, allocations: 99.89 kB / 0.5234 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.4458, allocations: 108 kB / 0.5235 GB, free: 6.738 MB / 398.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.0008958/0.4467, allocations: 373 kB / 0.5238 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003039/0.447, allocations: 126.4 kB / 0.524 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005097/0.4521, allocations: 1.53 MB / 0.5255 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.4521, allocations: 12 kB / 0.5255 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4522, allocations: 0 / 0.5255 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.4522, allocations: 7.984 kB / 0.5255 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007278/0.4595, allocations: 3.022 MB / 0.5284 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.4595, allocations: 4 kB / 0.5284 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008982/0.4604, allocations: 220.6 kB / 0.5286 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003092/0.4635, allocations: 424.7 kB / 0.529 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.4637, allocations: 43.98 kB / 0.5291 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/0.4718, allocations: 7.159 MB / 0.5361 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.4719, allocations: 11.94 kB / 0.5361 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005392/0.4773, allocations: 2.175 MB / 0.5382 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006869/0.478, allocations: 223.3 kB / 0.5384 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.4783, allocations: 39.97 kB / 0.5385 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009711/0.4793, allocations: 35.98 kB / 0.5385 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/0.4796, allocations: 108.3 kB / 0.5386 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.4797, allocations: 51.92 kB / 0.5387 GB, free: 6.246 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001365/0.4811, allocations: 1.021 MB / 0.5396 GB, free: 5.219 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4811, allocations: 0 / 0.5396 GB, free: 5.219 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002978/0.484, allocations: 0.8119 MB / 0.5404 GB, free: 4.406 MB / 414.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.001735/0.4858, allocations: 0.8663 MB / 0.5413 GB, free: 3.531 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00345/0.4893, allocations: 1.746 MB / 0.543 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4893, allocations: 0 / 0.543 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.4907, allocations: 0.9848 MB / 0.544 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.4932, allocations: 218 kB / 0.5442 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005083/0.4983, allocations: 3.679 MB / 0.5478 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008587/0.4992, allocations: 1.215 MB / 0.5489 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006629/0.4999, allocations: 227.3 kB / 0.5492 GB, free: 11.25 MB / 430.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4999, allocations: 0 / 0.5492 GB, free: 11.25 MB / 430.1 MB Notification: Performance of Templates: time 0.2479/0.7478, allocations: 60.47 MB / 0.6082 GB, free: 133.6 MB / 462.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)