Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07992/0.07992, allocations: 15.29 MB / 31.09 MB, free: 3.113 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.001091/0.001091, allocations: 198 kB / 36.14 MB, free: 2.137 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.319/1.319, allocations: 222.9 MB / 264 MB, free: 4.922 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.0009892/0.0009892, allocations: 107.7 kB / 318.4 MB, free: 3.426 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001019, allocations: 55.42 kB / 382.7 MB, free: 48.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.09086, allocations: 53.62 MB / 436.3 MB, free: 1.039 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction): time 0.03245/0.1233, allocations: 28.23 MB / 464.6 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02519/0.1485, allocations: 24.72 MB / 489.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1505, allocations: 43.69 kB / 489.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001896/0.1524, allocations: 0.5356 MB / 489.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004865/0.1573, allocations: 1.622 MB / 491.5 MB, free: 9.863 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008448/0.1658, allocations: 2.992 MB / 494.5 MB, free: 6.855 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003581/0.1694, allocations: 2.633 MB / 497.1 MB, free: 4.207 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002025/0.1714, allocations: 1.511 MB / 498.6 MB, free: 2.648 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.1732, allocations: 1.207 MB / 499.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002146/0.1753, allocations: 1.393 MB / 0.4895 GB, free: 40 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009935/0.1763, allocations: 172 kB / 0.4896 GB, free: 15.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009055/0.1854, allocations: 2.57 MB / 0.4922 GB, free: 13.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009057/0.1863, allocations: 0.5139 MB / 0.4927 GB, free: 12.78 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002167/0.1885, allocations: 1.201 MB / 0.4938 GB, free: 11.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.1986, allocations: 5.123 MB / 0.4988 GB, free: 6.434 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1987, allocations: 0 / 0.4988 GB, free: 6.434 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.1987, allocations: 0 / 0.4988 GB, free: 6.434 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001077/0.1988, allocations: 4 kB / 0.4988 GB, free: 6.43 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.006157/0.205, allocations: 2.96 MB / 0.5017 GB, free: 3.406 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.205, allocations: 8.875 kB / 0.5017 GB, free: 3.398 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.2068, allocations: 0.5091 MB / 0.5022 GB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.2088, allocations: 1.24 MB / 0.5034 GB, free: 1.602 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.209, allocations: 224 kB / 0.5037 GB, free: 1.367 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/0.2093, allocations: 223.9 kB / 0.5039 GB, free: 1.148 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1717/0.381, allocations: 2.681 MB / 0.5065 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/0.3811, allocations: 0 / 0.5065 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001748/0.3813, allocations: 87.5 kB / 0.5066 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.3813, allocations: 51.91 kB / 0.5066 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004424/0.3858, allocations: 3.158 MB / 0.5097 GB, free: 68.11 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01355/0.3993, allocations: 9.244 MB / 0.5187 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.4016, allocations: 1.837 MB / 0.5205 GB, free: 63.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.4028, allocations: 0.9043 MB / 0.5214 GB, free: 63.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009868/0.4127, allocations: 7.474 MB / 0.5287 GB, free: 57.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.4128, allocations: 48.16 kB / 0.5288 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008322/0.4136, allocations: 202.9 kB / 0.5289 GB, free: 57.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 3.968e-06/0.4136, allocations: 0 / 0.5289 GB, free: 57.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.03154/0.4452, allocations: 9.476 MB / 0.5382 GB, free: 52.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.4453, allocations: 130.4 kB / 0.5383 GB, free: 52.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4466, allocations: 1.344 MB / 0.5396 GB, free: 51.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.4467, allocations: 49.67 kB / 0.5397 GB, free: 51.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003685/0.4471, allocations: 1.046 MB / 0.5407 GB, free: 50.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/0.4474, allocations: 0.5661 MB / 0.5413 GB, free: 49.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/0.448, allocations: 470.5 kB / 0.5417 GB, free: 49.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.99e-05/0.448, allocations: 307.7 kB / 0.542 GB, free: 49.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.4491, allocations: 0.8459 MB / 0.5428 GB, free: 48.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.4505, allocations: 1.711 MB / 0.5445 GB, free: 47.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002704/0.4532, allocations: 2.697 MB / 0.5471 GB, free: 45.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.4532, allocations: 8 kB / 0.5471 GB, free: 45.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007071/0.4603, allocations: 3.474 MB / 0.5505 GB, free: 41.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.4604, allocations: 19.94 kB / 0.5506 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.489e-05/0.4604, allocations: 28 kB / 0.5506 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004604/0.465, allocations: 1.157 MB / 0.5517 GB, free: 40.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.4667, allocations: 0.5135 MB / 0.5522 GB, free: 40.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007307/0.474, allocations: 7.019 MB / 0.5591 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/0.4759, allocations: 143.5 kB / 0.5592 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002251/0.4762, allocations: 140 kB / 0.5593 GB, free: 32.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008319/0.477, allocations: 451.9 kB / 0.5598 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003774/0.4774, allocations: 165.9 kB / 0.5599 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007016/0.4844, allocations: 2.84 MB / 0.5627 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.4845, allocations: 16 kB / 0.5627 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4845, allocations: 4 kB / 0.5627 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.4845, allocations: 7.969 kB / 0.5627 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009823/0.4943, allocations: 4.877 MB / 0.5675 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4944, allocations: 4 kB / 0.5675 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009775/0.4954, allocations: 262.5 kB / 0.5677 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00428/0.4997, allocations: 1.036 MB / 0.5688 GB, free: 22.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.4999, allocations: 63.95 kB / 0.5688 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006423/0.5063, allocations: 6.388 MB / 0.5751 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5063, allocations: 7.938 kB / 0.5751 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02736/0.5337, allocations: 14.95 MB / 0.5897 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.534, allocations: 215.1 kB / 0.5899 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.5342, allocations: 42.62 kB / 0.5899 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5353, allocations: 66.55 kB / 0.59 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.5356, allocations: 149 kB / 0.5901 GB, free: 48 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.5358, allocations: 70.66 kB / 0.5902 GB, free: 15.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001015/0.5368, allocations: 0.883 MB / 0.591 GB, free: 15.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5368, allocations: 0 / 0.591 GB, free: 15.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003827/0.5406, allocations: 1.294 MB / 0.5923 GB, free: 13.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.logn) * 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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001955/0.5426, allocations: 1.1 MB / 0.5934 GB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004867/0.5475, allocations: 2.776 MB / 0.5961 GB, free: 10.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.5475, allocations: 4 kB / 0.5961 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/0.5499, allocations: 1.47 MB / 0.5975 GB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.5515, allocations: 262.8 kB / 0.5978 GB, free: 8.414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007533/0.559, allocations: 5.726 MB / 0.6034 GB, free: 2.773 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009395/0.56, allocations: 1.444 MB / 0.6048 GB, free: 1.301 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001685/0.5617, allocations: 414 kB / 0.6052 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005354/0.5622, allocations: 239.9 kB / 0.6054 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5622, allocations: 0 / 0.6054 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of Templates: time 0.06106/0.6233, allocations: 43.98 MB / 0.6484 GB, free: 5.098 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)