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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07112/0.07112, allocations: 15.27 MB / 22.55 MB, free: 1.105 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.001029/0.001029, allocations: 187.5 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.105/1.105, allocations: 221.4 MB / 253.3 MB, free: 10.62 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.0008672/0.0008672, allocations: 88.72 kB / 308.4 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 1.406 kB / 369 MB, free: 53.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06774/0.06775, allocations: 54.63 MB / 423.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2333/0.3011, allocations: 100.1 MB / 0.5115 GB, free: 8.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.3013, allocations: 67.84 kB / 0.5116 GB, free: 8.223 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: time 0.1096/0.4108, allocations: 50.22 MB / 0.5606 GB, free: 9.477 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001109/0.411, allocations: 37.36 kB / 0.5606 GB, free: 9.473 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.003541/0.4145, allocations: 1.709 MB / 0.5623 GB, free: 8.082 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.4146, allocations: 8.031 kB / 0.5623 GB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.4162, allocations: 469.8 kB / 0.5628 GB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.4179, allocations: 0.9536 MB / 0.5637 GB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.701e-05/0.4181, allocations: 113.7 kB / 0.5638 GB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.4182, allocations: 71.94 kB / 0.5639 GB, free: 6.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003599/0.4218, allocations: 3.179 MB / 0.567 GB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.4239, allocations: 1.644 MB / 0.5686 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.424, allocations: 3.938 kB / 0.5686 GB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.834e-05/0.4241, allocations: 4 kB / 0.5686 GB, free: 1.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.4241, allocations: 28 kB / 0.5686 GB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008603/0.4327, allocations: 6.912 MB / 0.5754 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009108/0.4336, allocations: 0.7785 MB / 0.5761 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.4341, allocations: 394.4 kB / 0.5765 GB, free: 9.203 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.4342, allocations: 75.55 kB / 0.5766 GB, free: 9.133 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.4342, allocations: 46.5 kB / 0.5766 GB, free: 9.078 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 2.655e-06/0.4342, allocations: 0 / 0.5766 GB, free: 9.078 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.002962/0.4372, allocations: 1.31 MB / 0.5779 GB, free: 7.754 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.4373, allocations: 106.8 kB / 0.578 GB, free: 7.625 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002132/0.4394, allocations: 2.116 MB / 0.5801 GB, free: 5.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.4394, allocations: 25.7 kB / 0.5801 GB, free: 5.469 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.4398, allocations: 0.6908 MB / 0.5808 GB, free: 4.766 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.4399, allocations: 161.8 kB / 0.5809 GB, free: 4.605 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.44, allocations: 0 / 0.5809 GB, free: 4.605 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4401, allocations: 361.8 kB / 0.5813 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009109/0.441, allocations: 0.846 MB / 0.5821 GB, free: 3.398 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.4422, allocations: 1.34 MB / 0.5834 GB, free: 1.816 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.4452, allocations: 1.395 MB / 0.5848 GB, free: 428 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.4452, allocations: 4 kB / 0.5848 GB, free: 424 kB / 394.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005425/0.4506, allocations: 2.928 MB / 0.5876 GB, free: 13.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.4507, allocations: 11.12 kB / 0.5876 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.4507, allocations: 16 kB / 0.5876 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.4518, allocations: 458.2 kB / 0.5881 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.4532, allocations: 387.5 kB / 0.5885 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.4564, allocations: 4.264 MB / 0.5926 GB, free: 8.051 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.4574, allocations: 138.5 kB / 0.5927 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4575, allocations: 75.97 kB / 0.5928 GB, free: 7.84 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: electrodeReaction.du:VARIABLE(unit = "J/mol" protected = true ) type: Real Warning: Iteration variables with default zero start attribute in equation system w/o 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.0002079/0.4578, allocations: 157.9 kB / 0.593 GB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.458, allocations: 130.3 kB / 0.5931 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.4611, allocations: 1.46 MB / 0.5945 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4611, allocations: 8 kB / 0.5945 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4611, allocations: 3.938 kB / 0.5945 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.4612, allocations: 4 kB / 0.5945 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003897/0.4651, allocations: 2.577 MB / 0.5971 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.4651, allocations: 11.91 kB / 0.5971 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003646/0.4654, allocations: 91.92 kB / 0.5972 GB, free: 3.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006995/0.4662, allocations: 275.2 kB / 0.5974 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.4662, allocations: 8 kB / 0.5974 GB, free: 2.949 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00281/0.469, allocations: 4.115 MB / 0.6014 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.469, allocations: 7.938 kB / 0.6014 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002657/0.4717, allocations: 2.258 MB / 0.6037 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.472, allocations: 251.1 kB / 0.6039 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.4722, allocations: 7.984 kB / 0.6039 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.4727, allocations: 8 kB / 0.6039 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.4728, allocations: 51.86 kB / 0.604 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.4728, allocations: 24 kB / 0.604 GB, free: 11.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001491/0.4743, allocations: 1.625 MB / 0.6056 GB, free: 10.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00159/0.4759, allocations: 0.6782 MB / 0.6062 GB, free: 9.367 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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.001177/0.4771, allocations: 0.775 MB / 0.607 GB, free: 8.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.4798, allocations: 1.67 MB / 0.6086 GB, free: 6.941 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4798, allocations: 0 / 0.6086 GB, free: 6.941 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000631/0.4804, allocations: 0.5836 MB / 0.6092 GB, free: 6.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.4819, allocations: 382.2 kB / 0.6096 GB, free: 5.973 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.4846, allocations: 1.793 MB / 0.6113 GB, free: 4.078 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008721/0.4855, allocations: 1.308 MB / 0.6126 GB, free: 2.742 MB / 426.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4855, allocations: 4 kB / 0.6126 GB, free: 2.738 MB / 426.7 MB Notification: Performance of Templates: time 0.03463/0.5201, allocations: 25.07 MB / 0.6371 GB, free: 9.949 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)