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.08447/0.08447, allocations: 15.27 MB / 30.21 MB, free: 3.297 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.001391/0.00139, allocations: 184.2 kB / 35.29 MB, free: 2.375 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.432/1.432, allocations: 223.2 MB / 263.4 MB, free: 6.488 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.0008993/0.0008994, allocations: 88.28 kB / 318.8 MB, free: 3.445 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003498, allocations: 8.172 kB / 384 MB, free: 50.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1024, allocations: 54.65 MB / 438.7 MB, free: 284 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5332, allocations: 100.9 MB / 0.5269 GB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/0.5336, allocations: 75.52 kB / 0.527 GB, free: 15.62 MB / 378.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.1139/0.6475, allocations: 51.04 MB / 0.5768 GB, free: 19.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.6475, allocations: 0 / 0.5768 GB, free: 19.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.887e-05/0.6476, allocations: 38.52 kB / 0.5769 GB, free: 19.29 MB / 394.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.003438/0.651, allocations: 1.873 MB / 0.5787 GB, free: 18.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.6511, allocations: 7.844 kB / 0.5787 GB, free: 18.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002131/0.6513, allocations: 177.6 kB / 0.5789 GB, free: 17.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.6529, allocations: 453 kB / 0.5793 GB, free: 17.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/0.6545, allocations: 0.9618 MB / 0.5802 GB, free: 17.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.6546, allocations: 149.9 kB / 0.5804 GB, free: 17.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.6548, allocations: 115.7 kB / 0.5805 GB, free: 17.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002729/0.6575, allocations: 2.315 MB / 0.5828 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.6576, allocations: 7.812 kB / 0.5828 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.6577, allocations: 46.75 kB / 0.5828 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.6577, allocations: 28.5 kB / 0.5828 GB, free: 16.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003345/0.6611, allocations: 3.284 MB / 0.586 GB, free: 16.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009418/0.6705, allocations: 6.903 MB / 0.5928 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.6716, allocations: 0.8349 MB / 0.5936 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.6718, allocations: 79.94 kB / 0.5937 GB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.6718, allocations: 38.56 kB / 0.5937 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007747/0.6726, allocations: 114.9 kB / 0.5938 GB, free: 10.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.537e-06/0.6726, allocations: 0 / 0.5938 GB, free: 10.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.004121/0.6768, allocations: 1.834 MB / 0.5956 GB, free: 8.836 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.6768, allocations: 110.9 kB / 0.5957 GB, free: 8.703 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/0.6797, allocations: 2.265 MB / 0.5979 GB, free: 6.434 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.6798, allocations: 33.7 kB / 0.598 GB, free: 6.395 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006373/0.6804, allocations: 0.879 MB / 0.5988 GB, free: 5.504 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.6806, allocations: 173.7 kB / 0.599 GB, free: 5.332 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.167e-05/0.6807, allocations: 31.94 kB / 0.599 GB, free: 5.301 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.6808, allocations: 349.9 kB / 0.5993 GB, free: 4.953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.6819, allocations: 0.8693 MB / 0.6002 GB, free: 4.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.6834, allocations: 1.382 MB / 0.6015 GB, free: 2.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.6847, allocations: 1.003 MB / 0.6025 GB, free: 1.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.6847, allocations: 8 kB / 0.6025 GB, free: 1.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004478/0.6892, allocations: 2.665 MB / 0.6051 GB, free: 14.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.6892, allocations: 14.34 kB / 0.6052 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.6893, allocations: 20.44 kB / 0.6052 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/0.6912, allocations: 0.5877 MB / 0.6057 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.6926, allocations: 387.4 kB / 0.6061 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003608/0.6962, allocations: 4.262 MB / 0.6103 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.6977, allocations: 71.7 kB / 0.6103 GB, free: 9.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.6979, allocations: 76.03 kB / 0.6104 GB, free: 9.016 MB / 410.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 () * Number of clocked 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.0007422/0.6986, allocations: 324.4 kB / 0.6107 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.6989, allocations: 138.3 kB / 0.6109 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.7018, allocations: 1.319 MB / 0.6121 GB, free: 7.211 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.7018, allocations: 7.828 kB / 0.6122 GB, free: 7.207 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.7019, allocations: 7.938 kB / 0.6122 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.7019, allocations: 7.984 kB / 0.6122 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004709/0.7066, allocations: 2.456 MB / 0.6146 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.7066, allocations: 7.938 kB / 0.6146 GB, free: 4.605 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.707, allocations: 91.89 kB / 0.6147 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.7084, allocations: 419.3 kB / 0.6151 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.7085, allocations: 20 kB / 0.6151 GB, free: 4.074 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.7117, allocations: 4.149 MB / 0.6191 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.7117, allocations: 7.938 kB / 0.6191 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.7144, allocations: 2.114 MB / 0.6212 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005225/0.7149, allocations: 251.2 kB / 0.6214 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.7151, allocations: 15.98 kB / 0.6215 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.7156, allocations: 16 kB / 0.6215 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-05/0.7157, allocations: 55.89 kB / 0.6215 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.7157, allocations: 24 kB / 0.6216 GB, free: 12.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002259/0.718, allocations: 1.764 MB / 0.6233 GB, free: 11.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.718, allocations: 0 / 0.6233 GB, free: 11.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002606/0.7206, allocations: 0.7136 MB / 0.624 GB, free: 10.41 MB / 426.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 () * Number of clocked 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.005284/0.7259, allocations: 4.507 MB / 0.6284 GB, free: 5.746 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003539/0.7295, allocations: 1.684 MB / 0.63 GB, free: 4.043 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.7295, allocations: 4 kB / 0.63 GB, free: 4.039 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009293/0.7305, allocations: 0.6151 MB / 0.6306 GB, free: 3.398 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.7328, allocations: 427.1 kB / 0.631 GB, free: 2.984 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.7454, allocations: 16.38 MB / 0.647 GB, free: 1.922 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.7465, allocations: 1.197 MB / 0.6482 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001264/0.7478, allocations: 246.5 kB / 0.6484 GB, free: 456 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007394/0.7485, allocations: 0.55 MB / 0.649 GB, free: 15.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7485, allocations: 0 / 0.649 GB, free: 15.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3007/1.049, allocations: 39.19 MB / 0.6872 GB, free: 113.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.049, allocations: 232 kB / 0.6875 GB, free: 113.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.341/4.391, allocations: 0 / 0.6875 GB, free: 113.1 MB / 474.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)