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") [: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.07249/0.07249, allocations: 15.26 MB / 22.54 MB, free: 2.914 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.001021, allocations: 182.4 kB / 27.31 MB, free: 4.305 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.094/1.094, allocations: 221.4 MB / 253.3 MB, free: 10.58 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.0008972/0.0008972, allocations: 96.66 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.851e-06/5.951e-06, allocations: 1.031 kB / 369 MB, free: 54.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0715/0.07152, allocations: 54.63 MB / 423.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2384/0.3099, allocations: 100.1 MB / 0.5115 GB, free: 8.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001605/0.3101, allocations: 72.83 kB / 0.5116 GB, free: 8.199 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 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: time 0.127/0.4371, allocations: 58.47 MB / 0.5687 GB, free: 1.852 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001067/0.4372, allocations: 36 kB / 0.5687 GB, free: 1.816 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003589/0.4408, allocations: 1.863 MB / 0.5706 GB, free: 15.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.4409, allocations: 11.97 kB / 0.5706 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/0.4428, allocations: 0.5298 MB / 0.5711 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001874/0.4447, allocations: 1.045 MB / 0.5721 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.4448, allocations: 110 kB / 0.5722 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.445, allocations: 72 kB / 0.5723 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00426/0.4493, allocations: 3.691 MB / 0.5759 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/0.4518, allocations: 1.81 MB / 0.5777 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.4518, allocations: 3.906 kB / 0.5777 GB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.8e-05/0.4519, allocations: 4 kB / 0.5777 GB, free: 8.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.4519, allocations: 32 kB / 0.5777 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008897/0.4608, allocations: 7.469 MB / 0.585 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008242/0.4617, allocations: 0.7302 MB / 0.5857 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.4621, allocations: 356.3 kB / 0.586 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.4622, allocations: 83.64 kB / 0.5861 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.4622, allocations: 43.45 kB / 0.5862 GB, free: 15.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 2.725e-06/0.4622, allocations: 3.938 kB / 0.5862 GB, free: 15.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=41): time 0.002167/0.4644, allocations: 1.147 MB / 0.5873 GB, free: 14.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.4645, allocations: 114.9 kB / 0.5874 GB, free: 14.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002727/0.4672, allocations: 2.585 MB / 0.5899 GB, free: 11.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.4672, allocations: 29.7 kB / 0.5899 GB, free: 11.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003821/0.4676, allocations: 0.7572 MB / 0.5907 GB, free: 10.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.4678, allocations: 157.9 kB / 0.5908 GB, free: 10.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.4678, allocations: 0 / 0.5908 GB, free: 10.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4679, allocations: 353.9 kB / 0.5912 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.469, allocations: 0.9645 MB / 0.5921 GB, free: 9.422 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.4703, allocations: 1.507 MB / 0.5936 GB, free: 7.648 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003765/0.4741, allocations: 1.632 MB / 0.5952 GB, free: 6.012 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.4741, allocations: 8 kB / 0.5952 GB, free: 6.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005701/0.4798, allocations: 3.192 MB / 0.5983 GB, free: 2.797 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.4799, allocations: 4 kB / 0.5983 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.4799, allocations: 20 kB / 0.5983 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005827/0.4805, allocations: 229.6 kB / 0.5985 GB, free: 2.543 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/0.483, allocations: 0.5268 MB / 0.5991 GB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.4864, allocations: 4.255 MB / 0.6032 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.4876, allocations: 150.4 kB / 0.6034 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.4878, allocations: 79.97 kB / 0.6034 GB, free: 13.24 MB / 426.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: 84 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0002289/0.488, allocations: 161.1 kB / 0.6036 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.4883, allocations: 146.2 kB / 0.6037 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002506/0.4908, allocations: 1.284 MB / 0.605 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.4908, allocations: 7.906 kB / 0.605 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4909, allocations: 0 / 0.605 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.4909, allocations: 7.984 kB / 0.605 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004293/0.4952, allocations: 2.493 MB / 0.6074 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.4952, allocations: 4 kB / 0.6074 GB, free: 9.012 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.4955, allocations: 79.91 kB / 0.6075 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007271/0.4963, allocations: 271.4 kB / 0.6078 GB, free: 8.656 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.4963, allocations: 11.98 kB / 0.6078 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003064/0.4994, allocations: 4.119 MB / 0.6118 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.4994, allocations: 4 kB / 0.6118 GB, free: 4.227 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002691/0.5021, allocations: 2.203 MB / 0.614 GB, free: 1.828 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004404/0.5025, allocations: 270.9 kB / 0.6142 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.5028, allocations: 16.05 kB / 0.6142 GB, free: 1.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006124/0.5034, allocations: 16.03 kB / 0.6142 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.5035, allocations: 35.95 kB / 0.6143 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.5035, allocations: 16 kB / 0.6143 GB, free: 1.461 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002083/0.5056, allocations: 2.003 MB / 0.6163 GB, free: 15.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00216/0.5078, allocations: 0.7875 MB / 0.617 GB, free: 14.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (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.001626/0.5094, allocations: 0.9086 MB / 0.6179 GB, free: 13.81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.5123, allocations: 1.691 MB / 0.6196 GB, free: 12.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5123, allocations: 1.5 kB / 0.6196 GB, free: 12.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000682/0.513, allocations: 0.5705 MB / 0.6201 GB, free: 11.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/0.5147, allocations: 441.4 kB / 0.6205 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.518, allocations: 1.898 MB / 0.6224 GB, free: 9.117 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.519, allocations: 1.36 MB / 0.6237 GB, free: 7.727 MB / 442.7 MB Notification: Performance of SimCode: time 2.11e-07/0.519, allocations: 0 / 0.6237 GB, free: 7.727 MB / 442.7 MB Notification: Performance of Templates: time 0.04057/0.5596, allocations: 28.21 MB / 0.6513 GB, free: 11.82 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)