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: translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1339/0.1339, 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.001119/0.00112, 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.421/1.421, allocations: 221.4 MB / 258.8 MB, free: 64 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008324/0.0008324, allocations: 98.89 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.007e-05, allocations: 3.984 kB / 376.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3355, allocations: 54.61 MB / 431.1 MB, free: 50.15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.4736, allocations: 100.8 MB / 0.5195 GB, free: 14.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4739, allocations: 74.03 kB / 0.5195 GB, free: 14.38 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.1268/0.6007, allocations: 50.88 MB / 0.5692 GB, free: 11.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6008, allocations: 224 / 0.5692 GB, free: 11.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.589e-05/0.6009, allocations: 43.92 kB / 0.5693 GB, free: 11.58 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.003636/0.6045, allocations: 1.673 MB / 0.5709 GB, free: 9.859 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.6046, allocations: 12.03 kB / 0.5709 GB, free: 9.848 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.6062, allocations: 456.3 kB / 0.5713 GB, free: 9.402 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.6081, allocations: 0.9658 MB / 0.5723 GB, free: 8.379 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.6082, allocations: 141.8 kB / 0.5724 GB, free: 8.227 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.6084, allocations: 124 kB / 0.5725 GB, free: 8.105 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003132/0.6115, allocations: 2.286 MB / 0.5748 GB, free: 5.746 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.6116, allocations: 3.938 kB / 0.5748 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.6117, allocations: 48 kB / 0.5748 GB, free: 5.695 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.66e-05/0.6117, allocations: 32 kB / 0.5749 GB, free: 5.664 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003903/0.6156, allocations: 3.237 MB / 0.578 GB, free: 2.426 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2978/0.9135, allocations: 6.893 MB / 0.5848 GB, free: 93.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.915, allocations: 0.8223 MB / 0.5856 GB, free: 93.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006467/0.9157, allocations: 402.8 kB / 0.5859 GB, free: 93.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.9159, allocations: 89.19 kB / 0.586 GB, free: 93.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.9159, allocations: 39.47 kB / 0.5861 GB, free: 93.66 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009173/0.9168, allocations: 117.1 kB / 0.5862 GB, free: 93.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.707e-06/0.9169, allocations: 2.469 kB / 0.5862 GB, free: 93.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.002537/0.9194, allocations: 1.147 MB / 0.5873 GB, free: 93.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.9195, allocations: 108.9 kB / 0.5874 GB, free: 93.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00336/0.9228, allocations: 2.246 MB / 0.5896 GB, free: 93.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.923, allocations: 36.33 kB / 0.5896 GB, free: 93.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006145/0.9236, allocations: 0.8748 MB / 0.5905 GB, free: 92.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.9237, allocations: 173.1 kB / 0.5906 GB, free: 92.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.287e-05/0.9238, allocations: 27.25 kB / 0.5907 GB, free: 92.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.9239, allocations: 352.5 kB / 0.591 GB, free: 92.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.9252, allocations: 0.8644 MB / 0.5919 GB, free: 92.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.9267, allocations: 1.366 MB / 0.5932 GB, free: 91.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.9282, allocations: 1.003 MB / 0.5942 GB, free: 91.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.9283, allocations: 5.531 kB / 0.5942 GB, free: 91.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004855/0.9331, allocations: 2.653 MB / 0.5968 GB, free: 91.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.9332, allocations: 11.75 kB / 0.5968 GB, free: 91.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.335e-05/0.9332, allocations: 18.25 kB / 0.5968 GB, free: 91.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/0.9352, allocations: 0.5813 MB / 0.5974 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.9368, allocations: 389.8 kB / 0.5977 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/0.9401, allocations: 4.248 MB / 0.6019 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.9419, allocations: 75.16 kB / 0.6019 GB, free: 87.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.942, allocations: 75.97 kB / 0.602 GB, free: 87.9 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.0002305/0.9423, allocations: 184.3 kB / 0.6022 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002483/0.9425, allocations: 142.9 kB / 0.6023 GB, free: 87.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/0.9456, allocations: 1.313 MB / 0.6036 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.9457, allocations: 6.703 kB / 0.6036 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.9457, allocations: 2.094 kB / 0.6036 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.9457, allocations: 8.188 kB / 0.6036 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.95, allocations: 2.441 MB / 0.606 GB, free: 87.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.9501, allocations: 5.75 kB / 0.606 GB, free: 87.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.9505, allocations: 91.83 kB / 0.6061 GB, free: 87.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/0.952, allocations: 424.2 kB / 0.6065 GB, free: 87.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.099e-05/0.952, allocations: 18.02 kB / 0.6065 GB, free: 87.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.9547, allocations: 4.132 MB / 0.6106 GB, free: 83.47 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.9547, allocations: 10.59 kB / 0.6106 GB, free: 83.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.9573, allocations: 2.103 MB / 0.6126 GB, free: 82.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006082/0.958, allocations: 247.2 kB / 0.6129 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.9581, allocations: 16.23 kB / 0.6129 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006722/0.9588, allocations: 19.38 kB / 0.6129 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.9589, allocations: 53.66 kB / 0.613 GB, free: 82.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/0.959, allocations: 24.7 kB / 0.613 GB, free: 82.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002602/0.9616, allocations: 1.749 MB / 0.6147 GB, free: 82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9616, allocations: 0 / 0.6147 GB, free: 82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002871/0.9645, allocations: 0.7129 MB / 0.6154 GB, free: 81.93 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.001607/0.9661, allocations: 0.7605 MB / 0.6161 GB, free: 81.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002927/0.969, allocations: 1.673 MB / 0.6178 GB, free: 81.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.9691, allocations: 0 / 0.6178 GB, free: 81.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.9698, allocations: 0.6152 MB / 0.6184 GB, free: 80.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.9719, allocations: 423.6 kB / 0.6188 GB, free: 80.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.9748, allocations: 1.8 MB / 0.6205 GB, free: 79.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.9754, allocations: 1.202 MB / 0.6217 GB, free: 79.06 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008966/0.9763, allocations: 250.2 kB / 0.6219 GB, free: 79.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.9765, allocations: 92.2 kB / 0.622 GB, free: 79 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/0.9765, allocations: 0 / 0.622 GB, free: 79 MB / 442.7 MB Notification: Performance of Templates: time 0.04021/1.017, allocations: 27.12 MB / 0.6485 GB, free: 77.12 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (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 & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)