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.1095/0.1095, allocations: 15.25 MB / 27.81 MB, free: 5.398 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.0009727/0.0009727, allocations: 188.4 kB / 32.69 MB, free: 0.5195 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.524/1.524, allocations: 221.4 MB / 258.8 MB, free: 15.98 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.001102/0.001103, allocations: 90.56 kB / 314 MB, free: 15.74 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.836e-05, allocations: 4 kB / 376.5 MB, free: 1.406 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.385, allocations: 54.6 MB / 431.1 MB, free: 50.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.525, allocations: 100.9 MB / 0.5195 GB, free: 14.37 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.5253, allocations: 73.8 kB / 0.5196 GB, free: 14.3 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 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.1459/0.6712, allocations: 59.2 MB / 0.5774 GB, free: 3.195 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.6712, allocations: 0 / 0.5774 GB, free: 3.195 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.908e-05/0.6713, allocations: 39.98 kB / 0.5774 GB, free: 3.156 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003263/0.6746, allocations: 1.849 MB / 0.5792 GB, free: 1.258 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.6746, allocations: 8.031 kB / 0.5792 GB, free: 1.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.6763, allocations: 0.5033 MB / 0.5797 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2797/0.956, allocations: 1.042 MB / 0.5807 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.9562, allocations: 154.5 kB / 0.5809 GB, free: 90.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002499/0.9564, allocations: 121.4 kB / 0.581 GB, free: 90.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003586/0.96, allocations: 2.552 MB / 0.5835 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.209e-05/0.9601, allocations: 3.75 kB / 0.5835 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001411/0.9602, allocations: 54.81 kB / 0.5836 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.9603, allocations: 32.19 kB / 0.5836 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005179/0.9655, allocations: 3.752 MB / 0.5873 GB, free: 89.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.9791, allocations: 7.373 MB / 0.5945 GB, free: 87.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.9807, allocations: 0.7802 MB / 0.5952 GB, free: 87.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005212/0.9812, allocations: 370.8 kB / 0.5956 GB, free: 87.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001583/0.9814, allocations: 77.25 kB / 0.5956 GB, free: 87.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.9814, allocations: 43.8 kB / 0.5957 GB, free: 87.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 3.596e-06/0.9814, allocations: 0 / 0.5957 GB, free: 87.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=41): time 0.002094/0.9835, allocations: 0.9923 MB / 0.5967 GB, free: 87.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.9836, allocations: 116.6 kB / 0.5968 GB, free: 87.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/0.9879, allocations: 2.74 MB / 0.5994 GB, free: 87.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.988, allocations: 34.48 kB / 0.5995 GB, free: 87.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008545/0.9889, allocations: 0.974 MB / 0.6004 GB, free: 86.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.989, allocations: 167.5 kB / 0.6006 GB, free: 86.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.996e-05/0.9891, allocations: 25.5 kB / 0.6006 GB, free: 86.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.9893, allocations: 359.9 kB / 0.6009 GB, free: 86.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/0.9908, allocations: 0.9812 MB / 0.6019 GB, free: 86.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.9924, allocations: 1.526 MB / 0.6034 GB, free: 85.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.9941, allocations: 1.135 MB / 0.6045 GB, free: 85.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.9941, allocations: 5.125 kB / 0.6045 GB, free: 85.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004714/0.9989, allocations: 2.813 MB / 0.6073 GB, free: 85.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.9989, allocations: 15.78 kB / 0.6073 GB, free: 85.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.971e-05/0.999, allocations: 17.88 kB / 0.6073 GB, free: 85.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/1, allocations: 379.9 kB / 0.6077 GB, free: 85.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/1.003, allocations: 0.5747 MB / 0.6082 GB, free: 85.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002991/1.006, allocations: 4.243 MB / 0.6124 GB, free: 81.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/1.008, allocations: 189.5 kB / 0.6125 GB, free: 81.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/1.008, allocations: 82.94 kB / 0.6126 GB, free: 81.29 MB / 442.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 () * 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.0002211/1.008, allocations: 189.9 kB / 0.6128 GB, free: 81.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/1.009, allocations: 154.8 kB / 0.6129 GB, free: 81.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/1.011, allocations: 1.139 MB / 0.6141 GB, free: 80.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/1.011, allocations: 7.844 kB / 0.6141 GB, free: 80.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/1.011, allocations: 0 / 0.6141 GB, free: 80.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/1.011, allocations: 8.469 kB / 0.6141 GB, free: 80.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003966/1.015, allocations: 2.466 MB / 0.6165 GB, free: 79.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/1.015, allocations: 4.875 kB / 0.6165 GB, free: 79.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/1.015, allocations: 84.3 kB / 0.6166 GB, free: 79.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/1.016, allocations: 414 kB / 0.617 GB, free: 79.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/1.016, allocations: 21.22 kB / 0.617 GB, free: 79.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002288/1.019, allocations: 4.136 MB / 0.621 GB, free: 75.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/1.019, allocations: 7.219 kB / 0.621 GB, free: 75.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/1.021, allocations: 2.058 MB / 0.623 GB, free: 73.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005807/1.021, allocations: 280.2 kB / 0.6233 GB, free: 73.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/1.021, allocations: 17.14 kB / 0.6233 GB, free: 73.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/1.022, allocations: 19.28 kB / 0.6233 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/1.022, allocations: 50.11 kB / 0.6234 GB, free: 73.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/1.022, allocations: 21.66 kB / 0.6234 GB, free: 73.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002168/1.024, allocations: 2.134 MB / 0.6255 GB, free: 72.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.024, allocations: 0 / 0.6255 GB, free: 72.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002681/1.027, allocations: 0.8232 MB / 0.6263 GB, free: 72.63 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 () * 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.001625/1.029, allocations: 0.8901 MB / 0.6272 GB, free: 72.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002778/1.031, allocations: 1.686 MB / 0.6288 GB, free: 71.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.031, allocations: 0 / 0.6288 GB, free: 71.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006776/1.032, allocations: 0.604 MB / 0.6294 GB, free: 71.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/1.034, allocations: 482.9 kB / 0.6299 GB, free: 71.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/1.038, allocations: 1.904 MB / 0.6317 GB, free: 70.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006344/1.038, allocations: 1.245 MB / 0.6329 GB, free: 69.76 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001036/1.039, allocations: 277.3 kB / 0.6332 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/1.04, allocations: 101 kB / 0.6333 GB, free: 69.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/1.04, allocations: 4 kB / 0.6333 GB, free: 69.7 MB / 442.7 MB Notification: Performance of Templates: time 0.04594/1.085, allocations: 30.56 MB / 0.6631 GB, free: 62.98 MB / 442.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)