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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001429, allocations: 102.1 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 192.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08523/0.08523, allocations: 15.3 MB / 306.5 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 64.11 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1082, allocations: 53.61 MB / 479.5 MB, free: 5.781 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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.1-master/package.mo:4740:7-4740: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.05458/0.1628, allocations: 29.64 MB / 0.4972 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2796/0.4424, allocations: 24.87 MB / 0.5215 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.4449, allocations: 25.75 kB / 0.5215 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.4475, allocations: 0.6036 MB / 0.5221 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007485/0.455, allocations: 1.863 MB / 0.5239 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01323/0.4682, allocations: 3.417 MB / 0.5272 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004926/0.4732, allocations: 2.702 MB / 0.5299 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003048/0.4763, allocations: 1.768 MB / 0.5316 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002581/0.4789, allocations: 1.244 MB / 0.5328 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00308/0.482, allocations: 1.42 MB / 0.5342 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.4831, allocations: 261.8 kB / 0.5345 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01164/0.4948, allocations: 2.699 MB / 0.5371 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.4961, allocations: 0.6031 MB / 0.5377 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002939/0.4991, allocations: 1.273 MB / 0.5389 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01464/0.5137, allocations: 5.519 MB / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.5138, allocations: 0 / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5138, allocations: 0 / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001525/0.5139, allocations: 0 / 0.5443 GB, free: 3.531 MB / 382.1 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.007871/0.5218, allocations: 2.968 MB / 0.5472 GB, free: 1.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5219, allocations: 8.031 kB / 0.5472 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002374/0.5242, allocations: 0.5038 MB / 0.5477 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/0.5268, allocations: 1.277 MB / 0.549 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.5271, allocations: 216.5 kB / 0.5492 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005674/0.5277, allocations: 226.3 kB / 0.5494 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005383/0.5331, allocations: 2.686 MB / 0.552 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.261e-05/0.5332, allocations: 3.938 kB / 0.552 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002822/0.5334, allocations: 88 kB / 0.5521 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.676e-05/0.5335, allocations: 52 kB / 0.5521 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00516/0.5387, allocations: 3.16 MB / 0.5552 GB, free: 8.727 MB / 398.1 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.01522/0.5539, allocations: 9.222 MB / 0.5642 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.5566, allocations: 1.851 MB / 0.566 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.558, allocations: 0.896 MB / 0.5669 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.569, allocations: 7.435 MB / 0.5742 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.5691, allocations: 47.55 kB / 0.5742 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001062/0.5702, allocations: 208.9 kB / 0.5744 GB, free: 3.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 7.484e-06/0.5702, allocations: 0 / 0.5744 GB, free: 3.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03694/0.6071, allocations: 9.484 MB / 0.5837 GB, free: 10.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.6072, allocations: 124.1 kB / 0.5838 GB, free: 10.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/0.6091, allocations: 1.341 MB / 0.5851 GB, free: 8.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002609/0.6094, allocations: 57.7 kB / 0.5852 GB, free: 8.875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006737/0.61, allocations: 1.042 MB / 0.5862 GB, free: 7.816 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006006/0.6106, allocations: 0.5649 MB / 0.5867 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007839/0.6114, allocations: 476.3 kB / 0.5872 GB, free: 6.773 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.6115, allocations: 305.1 kB / 0.5875 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.613, allocations: 0.8468 MB / 0.5883 GB, free: 5.625 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.6151, allocations: 1.712 MB / 0.59 GB, free: 3.531 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/0.6189, allocations: 2.693 MB / 0.5926 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.259e-05/0.6189, allocations: 10.66 kB / 0.5926 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008985/0.6279, allocations: 3.471 MB / 0.596 GB, free: 13.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.628, allocations: 20 kB / 0.596 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.591e-05/0.628, allocations: 30.66 kB / 0.5961 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005378/0.6334, allocations: 1.163 MB / 0.5972 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/0.6353, allocations: 0.507 MB / 0.5977 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.6456, allocations: 7.621 MB / 0.6051 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002125/0.6478, allocations: 106.3 kB / 0.6052 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004519/0.6482, allocations: 143.9 kB / 0.6054 GB, free: 3.047 MB / 446.1 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.001122/0.6494, allocations: 455.5 kB / 0.6058 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006452/0.65, allocations: 158 kB / 0.606 GB, free: 2.438 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008875/0.6589, allocations: 2.854 MB / 0.6087 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.679e-05/0.659, allocations: 16 kB / 0.6088 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.183e-05/0.659, allocations: 7.984 kB / 0.6088 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-05/0.659, allocations: 7.969 kB / 0.6088 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.6718, allocations: 4.878 MB / 0.6135 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.6718, allocations: 6.688 kB / 0.6135 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.673, allocations: 255.6 kB / 0.6138 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004816/0.6778, allocations: 1.028 MB / 0.6148 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002346/0.6781, allocations: 63.95 kB / 0.6149 GB, free: 9.305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00832/0.6864, allocations: 6.913 MB / 0.6216 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.6864, allocations: 0 / 0.6216 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008996/0.6954, allocations: 3.676 MB / 0.6252 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000534/0.696, allocations: 211.1 kB / 0.6254 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004686/0.6965, allocations: 36 kB / 0.6254 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.6978, allocations: 46.61 kB / 0.6255 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004106/0.6982, allocations: 149 kB / 0.6256 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/0.6984, allocations: 75.95 kB / 0.6257 GB, free: 13.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.6997, allocations: 0.8829 MB / 0.6266 GB, free: 12.84 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6997, allocations: 0 / 0.6266 GB, free: 12.84 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004145/0.7039, allocations: 1.093 MB / 0.6276 GB, free: 11.75 MB / 478.1 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.00283/0.7067, allocations: 1.123 MB / 0.6287 GB, free: 10.68 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005827/0.7126, allocations: 2.781 MB / 0.6314 GB, free: 7.852 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.7126, allocations: 0 / 0.6314 GB, free: 7.852 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00281/0.7154, allocations: 1.474 MB / 0.6329 GB, free: 6.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.7176, allocations: 292 kB / 0.6332 GB, free: 6.059 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007118/0.7248, allocations: 3.663 MB / 0.6367 GB, free: 2.336 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.726, allocations: 1.391 MB / 0.6381 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008697/0.7269, allocations: 293.6 kB / 0.6384 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7269, allocations: 4 kB / 0.6384 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of Templates: time 0.07965/0.8065, allocations: 71.92 MB / 0.7086 GB, free: 8.926 MB / 0.545 GB 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)