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.1074/0.1074, allocations: 15.26 MB / 22.74 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.00102, allocations: 185 kB / 27.52 MB, free: 6.117 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.466/1.466, allocations: 221.5 MB / 253.7 MB, free: 10.38 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.000865/0.000865, allocations: 85.84 kB / 308.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.858e-05/1.86e-05, allocations: 2.875 kB / 369.6 MB, free: 53.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 54.64 MB / 424.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4024/0.5193, allocations: 100.2 MB / 0.5121 GB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.5195, allocations: 71.36 kB / 0.5122 GB, free: 12.38 MB / 362.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.1078/0.6274, allocations: 50.19 MB / 0.5612 GB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.6274, allocations: 3.875 kB / 0.5612 GB, free: 14.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.558e-05/0.6275, allocations: 31.34 kB / 0.5612 GB, free: 14.65 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.002997/0.6305, allocations: 1.685 MB / 0.5629 GB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.6305, allocations: 12.03 kB / 0.5629 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.632, allocations: 445.8 kB / 0.5633 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.6336, allocations: 0.9643 MB / 0.5642 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.6337, allocations: 109.8 kB / 0.5643 GB, free: 11.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.6339, allocations: 71.98 kB / 0.5644 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004229/0.6381, allocations: 3.163 MB / 0.5675 GB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.6405, allocations: 1.629 MB / 0.5691 GB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.6405, allocations: 4 kB / 0.5691 GB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.948e-05/0.6406, allocations: 0 / 0.5691 GB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.6407, allocations: 32 kB / 0.5691 GB, free: 6.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.6508, allocations: 6.69 MB / 0.5757 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.652, allocations: 0.8052 MB / 0.5764 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004713/0.6525, allocations: 390.4 kB / 0.5768 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.6526, allocations: 79.06 kB / 0.5769 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.6527, allocations: 34.56 kB / 0.5769 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007389/0.6534, allocations: 95.03 kB / 0.577 GB, free: 14.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 2.124e-06/0.6534, allocations: 0 / 0.577 GB, free: 14.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.003027/0.6565, allocations: 1.278 MB / 0.5783 GB, free: 13.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.6565, allocations: 118.8 kB / 0.5784 GB, free: 13.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.6591, allocations: 2.104 MB / 0.5804 GB, free: 11.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.988e-05/0.6592, allocations: 25.7 kB / 0.5805 GB, free: 11.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006097/0.6598, allocations: 0.8744 MB / 0.5813 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.66, allocations: 173.7 kB / 0.5815 GB, free: 9.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.66, allocations: 0 / 0.5815 GB, free: 9.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.6602, allocations: 345.9 kB / 0.5818 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.6612, allocations: 0.8382 MB / 0.5826 GB, free: 8.797 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.6627, allocations: 1.341 MB / 0.5839 GB, free: 7.219 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00351/0.6662, allocations: 1.345 MB / 0.5853 GB, free: 5.871 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.677e-05/0.6662, allocations: 8 kB / 0.5853 GB, free: 5.863 MB / 394.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006304/0.6725, allocations: 2.877 MB / 0.5881 GB, free: 2.961 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.6726, allocations: 12 kB / 0.5881 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/0.6726, allocations: 20.44 kB / 0.5881 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.6738, allocations: 442.3 kB / 0.5885 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.6752, allocations: 395.5 kB / 0.5889 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/0.6791, allocations: 4.234 MB / 0.593 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.6806, allocations: 55.73 kB / 0.5931 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/0.6808, allocations: 75.97 kB / 0.5932 GB, free: 13.45 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: electrodeReaction.du:VARIABLE(unit = "J/mol" protected = true ) type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: electrodeReaction1.du:VARIABLE(unit = "J/mol" protected = true ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: anode.solution.v:VARIABLE(flow=false unit = "V" ) "Electric potential in the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cathode.solution.v:VARIABLE(flow=false unit = "V" ) "Electric potential in the solution" type: Real 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 () * 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.0003544/0.6811, allocations: 160.6 kB / 0.5933 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003748/0.6815, allocations: 126.4 kB / 0.5934 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.6851, allocations: 1.415 MB / 0.5948 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.6851, allocations: 8 kB / 0.5948 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.6851, allocations: 0 / 0.5948 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.6851, allocations: 7.938 kB / 0.5948 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.69, allocations: 2.434 MB / 0.5972 GB, free: 9.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.69, allocations: 8 kB / 0.5972 GB, free: 9.164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.6904, allocations: 95.83 kB / 0.5973 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007129/0.6911, allocations: 271.3 kB / 0.5976 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.6912, allocations: 8 kB / 0.5976 GB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00348/0.6947, allocations: 4.104 MB / 0.6016 GB, free: 4.383 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.6947, allocations: 20.06 kB / 0.6016 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/0.6979, allocations: 2.181 MB / 0.6037 GB, free: 1.961 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.6986, allocations: 239.3 kB / 0.604 GB, free: 1.707 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/0.699, allocations: 4 kB / 0.604 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007352/0.6997, allocations: 15.92 kB / 0.604 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.325e-05/0.6998, allocations: 55.91 kB / 0.604 GB, free: 1.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.6999, allocations: 23.98 kB / 0.6041 GB, free: 1.609 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002658/0.7026, allocations: 1.625 MB / 0.6056 GB, free: 15.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7026, allocations: 0 / 0.6056 GB, free: 15.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003075/0.7056, allocations: 0.6744 MB / 0.6063 GB, free: 15.31 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 () * 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.002183/0.7078, allocations: 0.7523 MB / 0.607 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003212/0.7111, allocations: 1.6 MB / 0.6086 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.7111, allocations: 0 / 0.6086 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008059/0.7119, allocations: 0.586 MB / 0.6092 GB, free: 12.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.7142, allocations: 407 kB / 0.6096 GB, free: 11.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.7179, allocations: 1.771 MB / 0.6113 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.719, allocations: 1.201 MB / 0.6125 GB, free: 8.891 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001015/0.72, allocations: 233.9 kB / 0.6127 GB, free: 8.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.7202, allocations: 91.41 kB / 0.6128 GB, free: 8.57 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7202, allocations: 0 / 0.6128 GB, free: 8.57 MB / 426.7 MB Notification: Performance of Templates: time 0.04147/0.7617, allocations: 22.96 MB / 0.6352 GB, free: 1.812 MB / 442.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)