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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1246/0.1246, allocations: 15.26 MB / 27.82 MB, free: 5.395 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.001433/0.001432, allocations: 184.5 kB / 32.7 MB, free: 0.5156 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.449/1.449, allocations: 221.4 MB / 258.8 MB, free: 15.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008723/0.0008719, allocations: 107 kB / 314 MB, free: 15.76 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.706e-05/3.707e-05, allocations: 0 / 376.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3275, allocations: 54.61 MB / 431.2 MB, free: 50.08 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.4561, allocations: 100.8 MB / 0.5196 GB, free: 14.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.4564, allocations: 68.84 kB / 0.5196 GB, free: 14.34 MB / 394.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.1315/0.5879, allocations: 50.88 MB / 0.5693 GB, free: 11.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5879, allocations: 224 / 0.5693 GB, free: 11.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001538/0.5881, allocations: 39.94 kB / 0.5694 GB, free: 11.54 MB / 442.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.00406/0.5922, allocations: 1.681 MB / 0.571 GB, free: 9.812 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.5922, allocations: 8.031 kB / 0.571 GB, free: 9.805 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004673/0.5927, allocations: 177.6 kB / 0.5712 GB, free: 9.621 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001765/0.5945, allocations: 460.3 kB / 0.5716 GB, free: 9.172 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002061/0.5966, allocations: 0.9697 MB / 0.5726 GB, free: 8.145 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.5967, allocations: 145.8 kB / 0.5727 GB, free: 7.988 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002834/0.597, allocations: 120 kB / 0.5728 GB, free: 7.871 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003248/0.6003, allocations: 2.286 MB / 0.575 GB, free: 5.512 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.6003, allocations: 0 / 0.575 GB, free: 5.512 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.6004, allocations: 48 kB / 0.5751 GB, free: 5.465 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.6005, allocations: 39.98 kB / 0.5751 GB, free: 5.426 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003929/0.6044, allocations: 3.243 MB / 0.5783 GB, free: 2.184 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2592/0.8636, allocations: 6.884 MB / 0.585 GB, free: 93.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.865, allocations: 0.8323 MB / 0.5858 GB, free: 93.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.8656, allocations: 400.6 kB / 0.5862 GB, free: 93.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.8657, allocations: 87.09 kB / 0.5863 GB, free: 93.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.8657, allocations: 39.75 kB / 0.5863 GB, free: 93.43 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006985/0.8665, allocations: 114.3 kB / 0.5864 GB, free: 93.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.627e-06/0.8665, allocations: 0 / 0.5864 GB, free: 93.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.002464/0.8689, allocations: 1.146 MB / 0.5876 GB, free: 93.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.869, allocations: 108.3 kB / 0.5877 GB, free: 93.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00284/0.8718, allocations: 2.253 MB / 0.5899 GB, free: 92.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.8719, allocations: 34.3 kB / 0.5899 GB, free: 92.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005877/0.8725, allocations: 0.874 MB / 0.5908 GB, free: 92.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.8726, allocations: 176.2 kB / 0.5909 GB, free: 92.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.8727, allocations: 23.81 kB / 0.5909 GB, free: 92.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.8728, allocations: 357.2 kB / 0.5913 GB, free: 92.22 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.874, allocations: 0.8622 MB / 0.5921 GB, free: 92.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.8756, allocations: 1.364 MB / 0.5935 GB, free: 91.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.877, allocations: 1.006 MB / 0.5944 GB, free: 91.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.8771, allocations: 4.5 kB / 0.5944 GB, free: 91.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004681/0.8817, allocations: 2.649 MB / 0.597 GB, free: 91.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.8818, allocations: 15.95 kB / 0.597 GB, free: 91.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/0.8818, allocations: 16.69 kB / 0.5971 GB, free: 91.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/0.8838, allocations: 0.5779 MB / 0.5976 GB, free: 91.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.8853, allocations: 395.8 kB / 0.598 GB, free: 91.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/0.8882, allocations: 4.245 MB / 0.6022 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.8896, allocations: 76.42 kB / 0.6022 GB, free: 87.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.8898, allocations: 80.25 kB / 0.6023 GB, free: 87.67 MB / 442.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 () * 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.0002041/0.89, allocations: 182 kB / 0.6025 GB, free: 87.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.8902, allocations: 137 kB / 0.6026 GB, free: 87.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.8932, allocations: 1.318 MB / 0.6039 GB, free: 87.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.8932, allocations: 6.484 kB / 0.6039 GB, free: 87.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.8932, allocations: 3.125 kB / 0.6039 GB, free: 87.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.8932, allocations: 3.734 kB / 0.6039 GB, free: 87.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.8975, allocations: 2.449 MB / 0.6063 GB, free: 86.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.8975, allocations: 4.031 kB / 0.6063 GB, free: 86.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.8979, allocations: 92.03 kB / 0.6064 GB, free: 86.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.8993, allocations: 423.8 kB / 0.6068 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.8994, allocations: 18.62 kB / 0.6068 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.902, allocations: 4.132 MB / 0.6108 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.902, allocations: 5.656 kB / 0.6109 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.9047, allocations: 2.094 MB / 0.6129 GB, free: 82.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005424/0.9053, allocations: 257.5 kB / 0.6131 GB, free: 82.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.9054, allocations: 14.34 kB / 0.6132 GB, free: 82.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/0.9059, allocations: 25.72 kB / 0.6132 GB, free: 82.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.9061, allocations: 52.98 kB / 0.6132 GB, free: 82.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.9061, allocations: 23.94 kB / 0.6133 GB, free: 82.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002349/0.9085, allocations: 1.747 MB / 0.615 GB, free: 81.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9085, allocations: 1.25 kB / 0.615 GB, free: 81.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00264/0.9111, allocations: 0.7131 MB / 0.6157 GB, free: 81.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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.003889/0.915, allocations: 4.485 MB / 0.62 GB, free: 78.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.9179, allocations: 1.676 MB / 0.6217 GB, free: 77.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.9179, allocations: 2 kB / 0.6217 GB, free: 77.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006212/0.9185, allocations: 0.6154 MB / 0.6223 GB, free: 77.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.9204, allocations: 421.3 kB / 0.6227 GB, free: 77.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.9242, allocations: 2.205 MB / 0.6248 GB, free: 76.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.9247, allocations: 1.199 MB / 0.626 GB, free: 75.67 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008166/0.9255, allocations: 251 kB / 0.6262 GB, free: 75.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005141/0.926, allocations: 0.5554 MB / 0.6268 GB, free: 75.18 MB / 442.7 MB Notification: Performance of SimCode: time 2.825e-06/0.9261, allocations: 0 / 0.6268 GB, free: 75.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06007/0.9861, allocations: 39.82 MB / 0.6657 GB, free: 61.54 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/0.9863, allocations: 202.5 kB / 0.6659 GB, free: 61.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.501/4.487, allocations: 2.25 kB / 0.6659 GB, free: 61.31 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)