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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1039/0.1039, allocations: 15.26 MB / 31.21 MB, free: 3.219 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.0008978/0.0008978, allocations: 183.8 kB / 36.3 MB, free: 2.266 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.513/1.513, allocations: 223.3 MB / 264.5 MB, free: 6.223 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.00103/0.00103, allocations: 98.2 kB / 319.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004192, allocations: 11.44 kB / 385.2 MB, free: 50.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 54.64 MB / 439.8 MB, free: 88 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4782/0.5913, allocations: 101 MB / 0.5281 GB, free: 15.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5916, allocations: 79.2 kB / 0.5282 GB, free: 15.63 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 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 - DAE generated: time 0.1353/0.7269, allocations: 59.36 MB / 0.5862 GB, free: 15.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.727, allocations: 0 / 0.5862 GB, free: 15.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.7272, allocations: 47.03 kB / 0.5862 GB, free: 15.67 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.005506/0.7327, allocations: 2.031 MB / 0.5882 GB, free: 14.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.7327, allocations: 12.59 kB / 0.5882 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.7349, allocations: 0.503 MB / 0.5887 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/0.7373, allocations: 1.104 MB / 0.5898 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.7376, allocations: 152.3 kB / 0.5899 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003776/0.738, allocations: 129.2 kB / 0.59 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003877/0.7419, allocations: 2.589 MB / 0.5926 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.84e-05/0.7419, allocations: 3.938 kB / 0.5926 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.7421, allocations: 51.97 kB / 0.5926 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.7421, allocations: 30.91 kB / 0.5927 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005013/0.7471, allocations: 3.79 MB / 0.5964 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/0.7583, allocations: 7.385 MB / 0.6036 GB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.7595, allocations: 0.7921 MB / 0.6043 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.7599, allocations: 379 kB / 0.6047 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.7601, allocations: 76.34 kB / 0.6048 GB, free: 460 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.7601, allocations: 34.89 kB / 0.6048 GB, free: 416 kB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.645e-06/0.7601, allocations: 0 / 0.6048 GB, free: 416 kB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.002612/0.7627, allocations: 1.539 MB / 0.6063 GB, free: 14.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.12e-05/0.7628, allocations: 106.8 kB / 0.6064 GB, free: 14.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003619/0.7664, allocations: 2.951 MB / 0.6093 GB, free: 11.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/0.7665, allocations: 33.7 kB / 0.6093 GB, free: 11.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007217/0.7673, allocations: 0.9729 MB / 0.6103 GB, free: 10.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.7674, allocations: 165.9 kB / 0.6104 GB, free: 10.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.7675, allocations: 24 kB / 0.6105 GB, free: 10.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.7677, allocations: 353.9 kB / 0.6108 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.7689, allocations: 0.9956 MB / 0.6118 GB, free: 9.176 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.7706, allocations: 1.547 MB / 0.6133 GB, free: 7.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002502/0.7731, allocations: 2.051 MB / 0.6153 GB, free: 5.066 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.7731, allocations: 7.938 kB / 0.6153 GB, free: 5.059 MB / 410.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004375/0.7775, allocations: 2.84 MB / 0.6181 GB, free: 2.203 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.7776, allocations: 16.22 kB / 0.6181 GB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.7776, allocations: 20 kB / 0.6181 GB, free: 2.168 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.7788, allocations: 373.1 kB / 0.6185 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/0.7812, allocations: 0.5733 MB / 0.619 GB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003697/0.7849, allocations: 4.262 MB / 0.6232 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.7866, allocations: 190.1 kB / 0.6234 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.7867, allocations: 79.97 kB / 0.6234 GB, free: 12.37 MB / 426.7 MB 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 () * Number of clocked 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.0007524/0.7875, allocations: 337.2 kB / 0.6238 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002315/0.7877, allocations: 154 kB / 0.6239 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.7896, allocations: 1.152 MB / 0.625 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.7897, allocations: 8 kB / 0.625 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.7897, allocations: 0 / 0.625 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.7897, allocations: 3.984 kB / 0.625 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0038/0.7935, allocations: 2.473 MB / 0.6275 GB, free: 8.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.808e-05/0.7935, allocations: 4 kB / 0.6275 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.7939, allocations: 75.91 kB / 0.6275 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.7951, allocations: 427.2 kB / 0.6279 GB, free: 7.594 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.7952, allocations: 19.98 kB / 0.628 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.7984, allocations: 4.148 MB / 0.632 GB, free: 3.094 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7984, allocations: 4.156 kB / 0.632 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.8009, allocations: 1.816 MB / 0.6338 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006316/0.8015, allocations: 282.9 kB / 0.6341 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.8017, allocations: 15.94 kB / 0.6341 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.8023, allocations: 20.06 kB / 0.6341 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.8024, allocations: 51.81 kB / 0.6341 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.8024, allocations: 20 kB / 0.6342 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002573/0.805, allocations: 2.16 MB / 0.6363 GB, free: 14.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.805, allocations: 0 / 0.6363 GB, free: 14.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002513/0.8075, allocations: 0.815 MB / 0.6371 GB, free: 13.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (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.001575/0.8091, allocations: 0.8958 MB / 0.6379 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.812, allocations: 1.727 MB / 0.6396 GB, free: 11.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.8121, allocations: 3.938 kB / 0.6396 GB, free: 11.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007706/0.8128, allocations: 0.6169 MB / 0.6402 GB, free: 10.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002982/0.8158, allocations: 468.8 kB / 0.6407 GB, free: 10.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004136/0.82, allocations: 3.109 MB / 0.6437 GB, free: 6.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008154/0.8208, allocations: 1.208 MB / 0.6449 GB, free: 5.672 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001077/0.8219, allocations: 271.5 kB / 0.6452 GB, free: 5.402 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.8221, allocations: 111.4 kB / 0.6453 GB, free: 5.293 MB / 442.7 MB Notification: Performance of SimCode: time 7.31e-07/0.8221, allocations: 0 / 0.6453 GB, free: 5.293 MB / 442.7 MB Notification: Performance of Templates: time 0.0494/0.8715, allocations: 30.67 MB / 0.6752 GB, free: 6.828 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)