Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1222/0.1222, allocations: 15.27 MB / 30.21 MB, free: 3.297 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.001138/0.001138, allocations: 181.3 kB / 35.29 MB, free: 2.379 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.486/1.486, allocations: 223.2 MB / 263.4 MB, free: 6.656 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.001091/0.001091, allocations: 96.25 kB / 318.8 MB, free: 3.473 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 12.03 kB / 383.9 MB, free: 50.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1137, allocations: 54.64 MB / 438.6 MB, free: 424 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4036/0.5173, allocations: 100.9 MB / 0.5269 GB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5177, allocations: 78.78 kB / 0.5269 GB, free: 15.62 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 Ag.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$Ag. 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 Cl.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$Cl. 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 AgCl.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$AgCl. 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.1282/0.6458, allocations: 59.38 MB / 0.5849 GB, free: 15.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6459, allocations: 3.938 kB / 0.5849 GB, free: 15.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.731e-05/0.646, allocations: 37.78 kB / 0.585 GB, free: 15.87 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003985/0.65, allocations: 2.054 MB / 0.587 GB, free: 14.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.65, allocations: 7.844 kB / 0.587 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/0.6517, allocations: 0.5031 MB / 0.5875 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.6535, allocations: 1.06 MB / 0.5885 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.6536, allocations: 154.6 kB / 0.5887 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.6538, allocations: 122.6 kB / 0.5888 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.6568, allocations: 2.571 MB / 0.5913 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.6569, allocations: 3.938 kB / 0.5913 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.657, allocations: 52.66 kB / 0.5913 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.657, allocations: 31.34 kB / 0.5914 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004614/0.6616, allocations: 3.792 MB / 0.5951 GB, free: 9.762 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.6736, allocations: 7.381 MB / 0.6023 GB, free: 2.176 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.6748, allocations: 0.7877 MB / 0.603 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.675, allocations: 76.28 kB / 0.6031 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.675, allocations: 42.89 kB / 0.6032 GB, free: 1.238 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.514e-06/0.675, allocations: 0 / 0.6032 GB, free: 1.238 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.002576/0.6776, allocations: 1.538 MB / 0.6047 GB, free: 15.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.6777, allocations: 118.8 kB / 0.6048 GB, free: 15.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003242/0.6809, allocations: 2.758 MB / 0.6075 GB, free: 12.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.681, allocations: 29.7 kB / 0.6075 GB, free: 12.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.6817, allocations: 0.9728 MB / 0.6084 GB, free: 11.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.6819, allocations: 161.9 kB / 0.6086 GB, free: 11.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.682, allocations: 28 kB / 0.6086 GB, free: 11.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6821, allocations: 357.9 kB / 0.609 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.6833, allocations: 0.9955 MB / 0.6099 GB, free: 10.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.6849, allocations: 1.543 MB / 0.6114 GB, free: 8.398 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.6863, allocations: 1.131 MB / 0.6126 GB, free: 7.266 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.6863, allocations: 8 kB / 0.6126 GB, free: 7.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003883/0.6902, allocations: 2.832 MB / 0.6153 GB, free: 4.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.6902, allocations: 12 kB / 0.6153 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.6903, allocations: 20 kB / 0.6154 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.6915, allocations: 381.6 kB / 0.6157 GB, free: 4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.6941, allocations: 0.5656 MB / 0.6163 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.6977, allocations: 4.266 MB / 0.6204 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.6993, allocations: 190.1 kB / 0.6206 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.6995, allocations: 83.97 kB / 0.6207 GB, free: 14.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (165): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 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.0007748/0.7003, allocations: 348.7 kB / 0.621 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002754/0.7006, allocations: 150 kB / 0.6212 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.7026, allocations: 1.148 MB / 0.6223 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.7026, allocations: 4 kB / 0.6223 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.7026, allocations: 4 kB / 0.6223 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.7026, allocations: 4 kB / 0.6223 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.7065, allocations: 2.477 MB / 0.6247 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.7065, allocations: 4 kB / 0.6247 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.7068, allocations: 83.83 kB / 0.6248 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/0.7082, allocations: 415 kB / 0.6252 GB, free: 9.797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.7083, allocations: 20 kB / 0.6252 GB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/0.7116, allocations: 4.156 MB / 0.6293 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.149e-05/0.7117, allocations: 7.984 kB / 0.6293 GB, free: 5.281 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/0.7144, allocations: 2.075 MB / 0.6313 GB, free: 3.039 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/0.715, allocations: 282.8 kB / 0.6316 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.7152, allocations: 19.98 kB / 0.6316 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000559/0.7157, allocations: 24.02 kB / 0.6316 GB, free: 2.699 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/0.7158, allocations: 35.95 kB / 0.6317 GB, free: 2.664 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.7159, allocations: 27.92 kB / 0.6317 GB, free: 2.637 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002651/0.7185, allocations: 2.156 MB / 0.6338 GB, free: 500 kB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7185, allocations: 0 / 0.6338 GB, free: 500 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.002773/0.7213, allocations: 0.8228 MB / 0.6346 GB, free: 15.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (42): * Single equations (assignments): 38 * 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.001753/0.7231, allocations: 0.8845 MB / 0.6355 GB, free: 14.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003092/0.7262, allocations: 1.708 MB / 0.6371 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.7262, allocations: 0 / 0.6371 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008276/0.727, allocations: 0.6124 MB / 0.6377 GB, free: 12.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.7292, allocations: 472.1 kB / 0.6382 GB, free: 11.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/0.7333, allocations: 3.098 MB / 0.6412 GB, free: 8.789 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008178/0.7342, allocations: 1.244 MB / 0.6424 GB, free: 7.516 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00102/0.7352, allocations: 275.5 kB / 0.6427 GB, free: 7.242 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.7354, allocations: 103.4 kB / 0.6428 GB, free: 7.141 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7354, allocations: 0 / 0.6428 GB, free: 7.141 MB / 442.7 MB Notification: Performance of Templates: time 0.04914/0.7846, allocations: 30.07 MB / 0.6721 GB, free: 9.285 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)