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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [: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.06849/0.06849, allocations: 15.26 MB / 22.54 MB, free: 2.902 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.0008885/0.0008885, allocations: 185.4 kB / 27.31 MB, free: 4.301 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.174/1.174, allocations: 221.4 MB / 253.3 MB, free: 10.65 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.0008778/0.0008778, allocations: 92.67 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2031/0.204, allocations: 60.74 MB / 369.1 MB, free: 54.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07914/0.2832, allocations: 54.62 MB / 423.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/0.5927, allocations: 100.1 MB / 0.5116 GB, free: 8.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.593, allocations: 69.78 kB / 0.5117 GB, free: 8.203 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: 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.1425/0.7355, allocations: 60.38 MB / 0.5706 GB, free: 15.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.7356, allocations: 11.98 kB / 0.5707 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.7377, allocations: 0.5297 MB / 0.5712 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002024/0.7398, allocations: 1.049 MB / 0.5722 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.7399, allocations: 106 kB / 0.5723 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/0.7401, allocations: 72 kB / 0.5724 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004381/0.7445, allocations: 3.695 MB / 0.576 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002399/0.7469, allocations: 1.802 MB / 0.5777 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.747, allocations: 4 kB / 0.5777 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-05/0.747, allocations: 0 / 0.5777 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/0.7471, allocations: 39.91 kB / 0.5778 GB, free: 8.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009348/0.7564, allocations: 7.469 MB / 0.5851 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00087/0.7573, allocations: 0.7349 MB / 0.5858 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003847/0.7577, allocations: 355.1 kB / 0.5861 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.7578, allocations: 83.66 kB / 0.5862 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.7579, allocations: 43.52 kB / 0.5862 GB, free: 15.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 2.325e-06/0.7579, allocations: 0 / 0.5862 GB, free: 15.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=41): time 0.002238/0.7601, allocations: 1.143 MB / 0.5874 GB, free: 14.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.7602, allocations: 110.8 kB / 0.5875 GB, free: 14.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/0.7631, allocations: 2.589 MB / 0.59 GB, free: 11.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.7631, allocations: 33.7 kB / 0.59 GB, free: 11.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004815/0.7636, allocations: 0.7571 MB / 0.5908 GB, free: 10.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.7638, allocations: 153.9 kB / 0.5909 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.7638, allocations: 0 / 0.5909 GB, free: 10.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.764, allocations: 361.9 kB / 0.5913 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.7651, allocations: 0.9606 MB / 0.5922 GB, free: 9.246 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.7666, allocations: 1.511 MB / 0.5937 GB, free: 7.469 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003854/0.7704, allocations: 1.632 MB / 0.5953 GB, free: 5.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.7705, allocations: 4 kB / 0.5953 GB, free: 5.828 MB / 410.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005357/0.7758, allocations: 3.192 MB / 0.5984 GB, free: 2.621 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.7758, allocations: 15.19 kB / 0.5984 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.7759, allocations: 16 kB / 0.5984 GB, free: 2.594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005774/0.7765, allocations: 233.6 kB / 0.5986 GB, free: 2.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002475/0.7789, allocations: 0.526 MB / 0.5992 GB, free: 1.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003497/0.7824, allocations: 4.256 MB / 0.6033 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.7837, allocations: 158.3 kB / 0.6035 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.7839, allocations: 75.97 kB / 0.6035 GB, free: 13.05 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.0002314/0.7841, allocations: 161.1 kB / 0.6037 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002378/0.7843, allocations: 142.1 kB / 0.6038 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002538/0.7869, allocations: 1.291 MB / 0.6051 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.7869, allocations: 8 kB / 0.6051 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.7869, allocations: 0 / 0.6051 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.7869, allocations: 7.891 kB / 0.6051 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004221/0.7912, allocations: 2.482 MB / 0.6075 GB, free: 8.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.7912, allocations: 8.469 kB / 0.6075 GB, free: 8.828 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.7915, allocations: 87.84 kB / 0.6076 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007174/0.7923, allocations: 263.3 kB / 0.6079 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.7923, allocations: 19.98 kB / 0.6079 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.7954, allocations: 4.119 MB / 0.6119 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.7954, allocations: 4 kB / 0.6119 GB, free: 4.043 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002733/0.7981, allocations: 2.202 MB / 0.6141 GB, free: 1.648 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003485/0.8016, allocations: 3.083 MB / 0.6171 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/0.8022, allocations: 270.9 kB / 0.6173 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.8025, allocations: 8 kB / 0.6173 GB, free: 14.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006482/0.8031, allocations: 11.91 kB / 0.6174 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.8032, allocations: 31.95 kB / 0.6174 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.8033, allocations: 24.06 kB / 0.6174 GB, free: 14.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002202/0.8055, allocations: 2.005 MB / 0.6194 GB, free: 12.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002992/0.8085, allocations: 0.8499 MB / 0.6202 GB, free: 11.16 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.00181/0.8103, allocations: 0.8998 MB / 0.6211 GB, free: 10.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.8132, allocations: 1.698 MB / 0.6227 GB, free: 8.609 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.8132, allocations: 4.688 kB / 0.6227 GB, free: 8.605 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006716/0.8139, allocations: 0.5658 MB / 0.6233 GB, free: 8.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.8157, allocations: 438.9 kB / 0.6237 GB, free: 7.598 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.8189, allocations: 1.894 MB / 0.6256 GB, free: 5.613 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009821/0.8199, allocations: 1.36 MB / 0.6269 GB, free: 4.223 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/0.8199, allocations: 0 / 0.6269 GB, free: 4.223 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)