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.1427/0.1427, allocations: 15.26 MB / 31.2 MB, free: 3.23 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.0011/0.0011, allocations: 177.7 kB / 36.29 MB, free: 2.266 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.475/1.475, allocations: 223.3 MB / 264.5 MB, free: 6.238 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.0008235/0.0008234, allocations: 90.33 kB / 319.9 MB, free: 3.156 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003743, allocations: 14.7 kB / 385.2 MB, free: 50.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09667, allocations: 54.64 MB / 439.8 MB, free: 80 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4178/0.5145, allocations: 100.9 MB / 0.5281 GB, free: 15.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.5148, allocations: 74.03 kB / 0.5282 GB, free: 15.75 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.1164/0.6312, allocations: 51.02 MB / 0.578 GB, free: 19.28 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6312, allocations: 0 / 0.578 GB, free: 19.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001406/0.6314, allocations: 38.48 kB / 0.578 GB, free: 19.27 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.004074/0.6354, allocations: 1.856 MB / 0.5798 GB, free: 18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6355, allocations: 12.62 kB / 0.5799 GB, free: 18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001671/0.6372, allocations: 447.6 kB / 0.5803 GB, free: 17.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.6391, allocations: 1.008 MB / 0.5813 GB, free: 17.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.6392, allocations: 147.5 kB / 0.5814 GB, free: 17.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002869/0.6395, allocations: 115.2 kB / 0.5815 GB, free: 17.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003091/0.6426, allocations: 2.326 MB / 0.5838 GB, free: 16.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.6426, allocations: 3.984 kB / 0.5838 GB, free: 16.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.6428, allocations: 54.47 kB / 0.5838 GB, free: 16.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.6428, allocations: 30.31 kB / 0.5839 GB, free: 16.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003628/0.6464, allocations: 3.277 MB / 0.5871 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.6567, allocations: 6.899 MB / 0.5938 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.6579, allocations: 0.8271 MB / 0.5946 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.6585, allocations: 410.4 kB / 0.595 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000141/0.6586, allocations: 79.94 kB / 0.5951 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.6587, allocations: 42.5 kB / 0.5951 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007957/0.6595, allocations: 106.9 kB / 0.5952 GB, free: 10.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 5.791e-06/0.6595, allocations: 0 / 0.5952 GB, free: 10.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.005279/0.6648, allocations: 2.091 MB / 0.5973 GB, free: 8.051 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.6649, allocations: 122.7 kB / 0.5974 GB, free: 7.906 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.6684, allocations: 2.433 MB / 0.5998 GB, free: 5.465 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.6685, allocations: 37.7 kB / 0.5998 GB, free: 5.422 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.6692, allocations: 0.8712 MB / 0.6007 GB, free: 4.539 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.6694, allocations: 177.7 kB / 0.6008 GB, free: 4.363 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/0.6695, allocations: 28 kB / 0.6008 GB, free: 4.336 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.6697, allocations: 353.9 kB / 0.6012 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.6709, allocations: 0.8732 MB / 0.602 GB, free: 3.109 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.6725, allocations: 1.386 MB / 0.6034 GB, free: 1.484 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002387/0.6749, allocations: 1.918 MB / 0.6053 GB, free: 15.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/0.6749, allocations: 4 kB / 0.6053 GB, free: 15.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004659/0.6796, allocations: 2.704 MB / 0.6079 GB, free: 12.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.6796, allocations: 18.28 kB / 0.6079 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.6797, allocations: 20.44 kB / 0.6079 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/0.682, allocations: 0.7009 MB / 0.6086 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008448/0.6828, allocations: 275.5 kB / 0.6089 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.6843, allocations: 1.667 MB / 0.6105 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.6856, allocations: 79.83 kB / 0.6106 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.6858, allocations: 67.98 kB / 0.6107 GB, free: 9.719 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 (145): * Single equations (assignments): 142 * 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: 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007458/0.6865, allocations: 329.2 kB / 0.611 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.6869, allocations: 134.2 kB / 0.6111 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002981/0.6898, allocations: 1.348 MB / 0.6124 GB, free: 7.879 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.6899, allocations: 7.984 kB / 0.6124 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.6899, allocations: 4 kB / 0.6124 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.6899, allocations: 0 / 0.6124 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004856/0.6948, allocations: 2.552 MB / 0.6149 GB, free: 5.238 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.6948, allocations: 3.938 kB / 0.6149 GB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/0.695, allocations: 59.91 kB / 0.615 GB, free: 5.176 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.6971, allocations: 0.6775 MB / 0.6156 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.6972, allocations: 19.98 kB / 0.6157 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.6986, allocations: 1.659 MB / 0.6173 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.6986, allocations: 4.031 kB / 0.6173 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/0.7023, allocations: 2.099 MB / 0.6193 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007724/0.7031, allocations: 243.2 kB / 0.6196 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003488/0.7034, allocations: 11.94 kB / 0.6196 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007504/0.7042, allocations: 19.98 kB / 0.6196 GB, free: 332 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.7043, allocations: 44.36 kB / 0.6196 GB, free: 288 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.7044, allocations: 16.06 kB / 0.6197 GB, free: 272 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002504/0.7069, allocations: 1.772 MB / 0.6214 GB, free: 14.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7069, allocations: 0 / 0.6214 GB, free: 14.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002558/0.7095, allocations: 0.702 MB / 0.6221 GB, free: 13.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (33): * Single equations (assignments): 30 * 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: 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00197/0.7115, allocations: 0.7477 MB / 0.6228 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.7143, allocations: 1.667 MB / 0.6244 GB, free: 11.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7144, allocations: 384 / 0.6244 GB, free: 11.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009536/0.7153, allocations: 0.5509 MB / 0.625 GB, free: 10.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.718, allocations: 433.3 kB / 0.6254 GB, free: 10.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005404/0.7234, allocations: 2.874 MB / 0.6282 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.7246, allocations: 1.157 MB / 0.6293 GB, free: 6.254 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001173/0.7258, allocations: 238.4 kB / 0.6295 GB, free: 6.016 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.7261, allocations: 95.36 kB / 0.6296 GB, free: 5.922 MB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/0.7261, allocations: 0 / 0.6296 GB, free: 5.922 MB / 426.7 MB Notification: Performance of Templates: time 0.04874/0.7748, allocations: 28.25 MB / 0.6572 GB, free: 9.871 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)