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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.07182/0.07182, allocations: 15.26 MB / 22.55 MB, free: 1.102 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.0009738/0.0009738, allocations: 183.4 kB / 27.31 MB, free: 6.184 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.198/1.198, allocations: 221.4 MB / 253.3 MB, free: 11.26 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.0009849/0.0009852, allocations: 88.62 kB / 308.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2283/0.2294, allocations: 60.75 MB / 369.1 MB, free: 54.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.3192, allocations: 54.63 MB / 423.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3107/0.63, allocations: 100.1 MB / 0.5116 GB, free: 8.379 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.6303, allocations: 74.56 kB / 0.5117 GB, free: 8.375 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: 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.1262/0.7565, allocations: 51.97 MB / 0.5624 GB, free: 8.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.7566, allocations: 8.625 kB / 0.5624 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.7587, allocations: 466.8 kB / 0.5629 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.7607, allocations: 0.962 MB / 0.5638 GB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.7608, allocations: 113.6 kB / 0.5639 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.761, allocations: 68 kB / 0.564 GB, free: 6.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003974/0.765, allocations: 3.179 MB / 0.5671 GB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.7674, allocations: 1.644 MB / 0.5687 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/0.7674, allocations: 4 kB / 0.5687 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.62e-05/0.7675, allocations: 0 / 0.5687 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.7675, allocations: 32 kB / 0.5687 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009354/0.7769, allocations: 6.918 MB / 0.5755 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009507/0.7779, allocations: 0.7648 MB / 0.5762 GB, free: 9.887 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.7783, allocations: 394.4 kB / 0.5766 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.7785, allocations: 79.33 kB / 0.5767 GB, free: 9.418 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.7785, allocations: 42.55 kB / 0.5767 GB, free: 9.367 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.898e-06/0.7785, allocations: 0 / 0.5767 GB, free: 9.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.003112/0.7816, allocations: 1.306 MB / 0.578 GB, free: 8.047 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.7817, allocations: 110.8 kB / 0.5781 GB, free: 7.914 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/0.7839, allocations: 2.116 MB / 0.5802 GB, free: 5.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.431e-05/0.7839, allocations: 25.7 kB / 0.5802 GB, free: 5.758 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.7843, allocations: 0.6869 MB / 0.5809 GB, free: 5.059 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.7844, allocations: 169.7 kB / 0.581 GB, free: 4.891 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.971e-05/0.7845, allocations: 0 / 0.581 GB, free: 4.891 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7846, allocations: 353.8 kB / 0.5814 GB, free: 4.539 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009359/0.7856, allocations: 0.8499 MB / 0.5822 GB, free: 3.688 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.7868, allocations: 1.348 MB / 0.5835 GB, free: 2.098 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003127/0.7899, allocations: 1.387 MB / 0.5849 GB, free: 0.707 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.7899, allocations: 4 kB / 0.5849 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005651/0.7956, allocations: 2.935 MB / 0.5877 GB, free: 13.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.7956, allocations: 4 kB / 0.5877 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.7956, allocations: 20 kB / 0.5878 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.7968, allocations: 450.6 kB / 0.5882 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.7983, allocations: 387.5 kB / 0.5886 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003871/0.8022, allocations: 4.256 MB / 0.5927 GB, free: 8.348 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.8039, allocations: 138.5 kB / 0.5928 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/0.8041, allocations: 71.97 kB / 0.5929 GB, free: 8.141 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.0003543/0.8045, allocations: 168.7 kB / 0.5931 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/0.8049, allocations: 130.3 kB / 0.5932 GB, free: 7.844 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003711/0.8086, allocations: 1.46 MB / 0.5946 GB, free: 6.352 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.8086, allocations: 4 kB / 0.5946 GB, free: 6.348 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.8086, allocations: 4 kB / 0.5946 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.8086, allocations: 7.922 kB / 0.5946 GB, free: 6.336 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004505/0.8132, allocations: 2.573 MB / 0.5972 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.8132, allocations: 7.906 kB / 0.5972 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003755/0.8136, allocations: 95.83 kB / 0.5972 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007335/0.8143, allocations: 267.5 kB / 0.5975 GB, free: 3.262 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.8144, allocations: 19.98 kB / 0.5975 GB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003073/0.8174, allocations: 4.115 MB / 0.6015 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/0.8175, allocations: 4 kB / 0.6015 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002993/0.8205, allocations: 2.263 MB / 0.6038 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003699/0.8242, allocations: 3.139 MB / 0.6068 GB, free: 8.949 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005342/0.8247, allocations: 251.2 kB / 0.6071 GB, free: 8.684 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003893/0.8251, allocations: 4 kB / 0.6071 GB, free: 8.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007166/0.8258, allocations: 8 kB / 0.6071 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.8259, allocations: 47.86 kB / 0.6071 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.826, allocations: 27.98 kB / 0.6071 GB, free: 8.598 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002001/0.828, allocations: 1.625 MB / 0.6087 GB, free: 6.973 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003148/0.8311, allocations: 0.733 MB / 0.6094 GB, free: 6.238 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.001734/0.8329, allocations: 0.769 MB / 0.6102 GB, free: 5.504 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003222/0.8361, allocations: 1.678 MB / 0.6118 GB, free: 3.809 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.8361, allocations: 320 / 0.6118 GB, free: 3.809 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.8369, allocations: 0.5748 MB / 0.6124 GB, free: 3.215 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.8388, allocations: 386.6 kB / 0.6128 GB, free: 2.844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.8424, allocations: 1.801 MB / 0.6145 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.8435, allocations: 1.315 MB / 0.6158 GB, free: 15.6 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.8436, allocations: 0 / 0.6158 GB, free: 15.6 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)