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/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.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/Chemical 1.4.0-master/package.mo): time 0.08696/0.08696, allocations: 15.26 MB / 30.21 MB, free: 3.195 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.001131/0.001131, allocations: 180.2 kB / 35.29 MB, free: 2.363 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.354/1.354, allocations: 223.2 MB / 263.4 MB, free: 6.902 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.0008918/0.0008919, allocations: 92.27 kB / 318.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004079/0.0004079, allocations: 7.281 kB / 383.9 MB, free: 50.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1026, allocations: 54.65 MB / 438.6 MB, free: 0.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3788/0.4814, allocations: 104.3 MB / 0.5301 GB, free: 15.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.4817, allocations: 75.44 kB / 0.5302 GB, free: 15.41 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System cathode.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$cathode. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System anode.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$anode. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution1.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$solution1. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalIdealGasSubstance$H2. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System electrone.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.ElectronTransfer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System electrone1.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.ElectronTransfer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System O2_.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalIdealGasSubstance$O2_. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.1321/0.6138, allocations: 59.84 MB / 0.5887 GB, free: 14.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.6139, allocations: 0 / 0.5887 GB, free: 14.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.977e-05/0.614, allocations: 42.8 kB / 0.5887 GB, free: 14.1 MB / 394.7 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.004702/0.6187, allocations: 2.24 MB / 0.5909 GB, free: 12.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.6187, allocations: 7.844 kB / 0.5909 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001599/0.6203, allocations: 498.9 kB / 0.5914 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.6226, allocations: 1.186 MB / 0.5925 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.6227, allocations: 182 kB / 0.5927 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.623, allocations: 165.8 kB / 0.5929 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00395/0.627, allocations: 2.781 MB / 0.5956 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.627, allocations: 0 / 0.5956 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.6272, allocations: 71.98 kB / 0.5956 GB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.6272, allocations: 44 kB / 0.5957 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004811/0.632, allocations: 3.656 MB / 0.5993 GB, free: 5.477 MB / 394.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.01238/0.6444, allocations: 8.646 MB / 0.6077 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.6466, allocations: 1.844 MB / 0.6095 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003853/0.647, allocations: 296.3 kB / 0.6098 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.647, allocations: 47.5 kB / 0.6098 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000908/0.6479, allocations: 158.6 kB / 0.61 GB, free: 10.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=109): time 3.436e-06/0.6479, allocations: 4 kB / 0.61 GB, free: 10.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=164): time 0.0471/0.6951, allocations: 14.22 MB / 0.6239 GB, free: 11.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.6952, allocations: 120.1 kB / 0.624 GB, free: 11.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.6972, allocations: 1.602 MB / 0.6256 GB, free: 9.973 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.6974, allocations: 57.64 kB / 0.6256 GB, free: 9.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006101/0.698, allocations: 0.9283 MB / 0.6265 GB, free: 8.969 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005025/0.6985, allocations: 0.5623 MB / 0.6271 GB, free: 8.398 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.6987, allocations: 48 kB / 0.6271 GB, free: 8.352 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.6988, allocations: 390 kB / 0.6275 GB, free: 7.965 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/0.7006, allocations: 1.316 MB / 0.6288 GB, free: 6.645 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.7026, allocations: 1.858 MB / 0.6306 GB, free: 4.539 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.7046, allocations: 1.509 MB / 0.6321 GB, free: 3.031 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.7046, allocations: 4 kB / 0.6321 GB, free: 3.027 MB / 426.7 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.009157/0.7138, allocations: 4.184 MB / 0.6361 GB, free: 14.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.7139, allocations: 15.94 kB / 0.6362 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.7139, allocations: 16 kB / 0.6362 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006547/0.7204, allocations: 1.353 MB / 0.6375 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/0.7231, allocations: 0.5031 MB / 0.638 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007457/0.7306, allocations: 5.05 MB / 0.6429 GB, free: 7.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/0.7328, allocations: 107.8 kB / 0.643 GB, free: 7.473 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/0.733, allocations: 108 kB / 0.6431 GB, free: 7.367 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (232): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {3 26,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009952/0.734, allocations: 412.1 kB / 0.6435 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003783/0.7344, allocations: 181.7 kB / 0.6437 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008542/0.743, allocations: 3.538 MB / 0.6471 GB, free: 3.215 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.743, allocations: 23.98 kB / 0.6472 GB, free: 3.191 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.7431, allocations: 11.94 kB / 0.6472 GB, free: 3.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.832e-05/0.7431, allocations: 7.969 kB / 0.6472 GB, free: 3.172 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.7561, allocations: 6.422 MB / 0.6535 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.7562, allocations: 4 kB / 0.6535 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/0.7578, allocations: 311.5 kB / 0.6538 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00631/0.7641, allocations: 1.35 MB / 0.6551 GB, free: 10.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002982/0.7644, allocations: 63.95 kB / 0.6551 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00694/0.7714, allocations: 4.993 MB / 0.66 GB, free: 5.586 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.7714, allocations: 7.984 kB / 0.66 GB, free: 5.578 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/0.7815, allocations: 5.364 MB / 0.6653 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000724/0.7822, allocations: 262.8 kB / 0.6655 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005258/0.7828, allocations: 40 kB / 0.6655 GB, free: 15.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.7843, allocations: 67.81 kB / 0.6656 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.7847, allocations: 137.6 kB / 0.6657 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.7848, allocations: 67.95 kB / 0.6658 GB, free: 15.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001844/0.7867, allocations: 1.23 MB / 0.667 GB, free: 14.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7867, allocations: 4 kB / 0.667 GB, free: 14.17 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003617/0.7903, allocations: 0.9212 MB / 0.6679 GB, free: 13.25 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (142): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {3 31,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002087/0.7924, allocations: 0.8622 MB / 0.6688 GB, free: 12.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005437/0.7979, allocations: 3.27 MB / 0.6719 GB, free: 9.059 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.7979, allocations: 0.9375 kB / 0.6719 GB, free: 9.059 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002596/0.8005, allocations: 1.663 MB / 0.6736 GB, free: 7.344 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/0.8033, allocations: 0.5194 MB / 0.6741 GB, free: 6.832 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008122/0.8115, allocations: 4.756 MB / 0.6787 GB, free: 1.98 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.8128, allocations: 1.434 MB / 0.6801 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001782/0.8146, allocations: 326.5 kB / 0.6804 GB, free: 192 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006082/0.8153, allocations: 155.3 kB / 0.6806 GB, free: 36 kB / 474.7 MB Notification: Performance of SimCode: time 9.41e-07/0.8153, allocations: 0 / 0.6806 GB, free: 36 kB / 474.7 MB Notification: Performance of Templates: time 0.2683/1.084, allocations: 41.85 MB / 0.7215 GB, free: 105 MB / 474.7 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)