Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09565/0.09565, allocations: 15.27 MB / 30.21 MB, free: 3.293 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.001167/0.001167, allocations: 185.8 kB / 35.29 MB, free: 2.371 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.39/1.39, allocations: 223.2 MB / 263.4 MB, free: 6.449 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.001019/0.001019, allocations: 96.25 kB / 318.8 MB, free: 3.469 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003233, allocations: 8.484 kB / 383.9 MB, free: 50.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09992/0.1003, allocations: 54.65 MB / 438.6 MB, free: 424 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3758/0.4761, allocations: 100.9 MB / 0.5268 GB, free: 15.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4764, allocations: 72.7 kB / 0.5269 GB, free: 15.55 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: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.Sources.PureSubstance$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.PureSubstance$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. [/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.Sources.PureSubstance$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. Notification: Performance of FrontEnd - DAE generated: time 0.1142/0.5907, allocations: 51.04 MB / 0.5767 GB, free: 19.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5907, allocations: 0 / 0.5767 GB, free: 19.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001617/0.5909, allocations: 38.36 kB / 0.5768 GB, free: 19.29 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.00527/0.5962, allocations: 1.871 MB / 0.5786 GB, free: 18.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5962, allocations: 7.75 kB / 0.5786 GB, free: 18.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00198/0.5982, allocations: 446.3 kB / 0.579 GB, free: 17.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.6006, allocations: 0.9572 MB / 0.58 GB, free: 17.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.6008, allocations: 147.5 kB / 0.5801 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003951/0.6012, allocations: 115.9 kB / 0.5802 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003629/0.6049, allocations: 2.314 MB / 0.5825 GB, free: 16.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.6049, allocations: 0 / 0.5825 GB, free: 16.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.6051, allocations: 53.03 kB / 0.5825 GB, free: 16.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.6051, allocations: 38.2 kB / 0.5826 GB, free: 16.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0038/0.6089, allocations: 3.279 MB / 0.5858 GB, free: 16.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01104/0.62, allocations: 6.907 MB / 0.5925 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.6212, allocations: 0.8402 MB / 0.5933 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.6213, allocations: 78.23 kB / 0.5934 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.6214, allocations: 38.55 kB / 0.5935 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008129/0.6222, allocations: 109.6 kB / 0.5936 GB, free: 11.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 5.26e-06/0.6222, allocations: 3.906 kB / 0.5936 GB, free: 11.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.004402/0.6266, allocations: 1.83 MB / 0.5954 GB, free: 9.172 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.154e-05/0.6267, allocations: 114.9 kB / 0.5955 GB, free: 9.035 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/0.6299, allocations: 2.265 MB / 0.5977 GB, free: 6.766 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.63, allocations: 33.7 kB / 0.5977 GB, free: 6.727 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006803/0.6307, allocations: 0.8751 MB / 0.5986 GB, free: 5.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.6309, allocations: 169.7 kB / 0.5987 GB, free: 5.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-05/0.631, allocations: 28 kB / 0.5987 GB, free: 5.645 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6311, allocations: 353.9 kB / 0.5991 GB, free: 5.293 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.6323, allocations: 0.8732 MB / 0.5999 GB, free: 4.418 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.6338, allocations: 1.378 MB / 0.6013 GB, free: 2.797 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.6352, allocations: 1.007 MB / 0.6023 GB, free: 1.789 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-05/0.6353, allocations: 8 kB / 0.6023 GB, free: 1.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004472/0.6397, allocations: 2.665 MB / 0.6049 GB, free: 15.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.6398, allocations: 12 kB / 0.6049 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/0.6398, allocations: 20 kB / 0.6049 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.6417, allocations: 0.5881 MB / 0.6055 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.6432, allocations: 387.5 kB / 0.6059 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003488/0.6467, allocations: 4.255 MB / 0.61 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.6482, allocations: 75.61 kB / 0.6101 GB, free: 9.434 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/0.6484, allocations: 75.97 kB / 0.6102 GB, free: 9.359 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (153): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000789/0.6492, allocations: 329.2 kB / 0.6105 GB, free: 9.031 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003528/0.6496, allocations: 138.3 kB / 0.6106 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003023/0.6526, allocations: 1.326 MB / 0.6119 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.6526, allocations: 4 kB / 0.6119 GB, free: 7.535 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.6526, allocations: 4 kB / 0.6119 GB, free: 7.531 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.547e-06/0.6527, allocations: 96 / 0.6119 GB, free: 7.531 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.657, allocations: 2.456 MB / 0.6143 GB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.6571, allocations: 7.984 kB / 0.6143 GB, free: 4.945 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.6575, allocations: 99.81 kB / 0.6144 GB, free: 4.848 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.6589, allocations: 427.3 kB / 0.6148 GB, free: 4.418 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.659, allocations: 16 kB / 0.6148 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/0.6621, allocations: 4.144 MB / 0.6189 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.6622, allocations: 7.938 kB / 0.6189 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.6647, allocations: 2.114 MB / 0.6209 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006508/0.6654, allocations: 251.2 kB / 0.6212 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/0.6657, allocations: 12 kB / 0.6212 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007095/0.6664, allocations: 19.98 kB / 0.6212 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.6666, allocations: 56.02 kB / 0.6213 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.6666, allocations: 28.09 kB / 0.6213 GB, free: 13.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00254/0.6692, allocations: 1.764 MB / 0.623 GB, free: 11.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6692, allocations: 0 / 0.623 GB, free: 11.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003068/0.6722, allocations: 0.7136 MB / 0.6237 GB, free: 10.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 1,1 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001927/0.6742, allocations: 0.7558 MB / 0.6244 GB, free: 9.973 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003476/0.6777, allocations: 1.683 MB / 0.6261 GB, free: 8.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.6777, allocations: 0 / 0.6261 GB, free: 8.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008877/0.6786, allocations: 0.6209 MB / 0.6267 GB, free: 7.625 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.6808, allocations: 434.3 kB / 0.6271 GB, free: 7.207 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.6852, allocations: 2.926 MB / 0.63 GB, free: 4.191 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008612/0.6861, allocations: 1.193 MB / 0.6311 GB, free: 2.969 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009572/0.687, allocations: 250.5 kB / 0.6314 GB, free: 2.719 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.6873, allocations: 95.41 kB / 0.6315 GB, free: 2.625 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6873, allocations: 0 / 0.6315 GB, free: 2.625 MB / 426.7 MB Notification: Performance of Templates: time 0.04298/0.7303, allocations: 26.71 MB / 0.6575 GB, free: 8.113 MB / 458.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)