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.00149/0.001489, allocations: 107.3 kB / 15.99 MB, free: 6.348 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.001639/0.001639, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.312/1.312, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08137/0.08137, allocations: 15.3 MB / 306 MB, free: 15.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.17 kB / 370.5 MB, free: 50.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.1005, allocations: 53.62 MB / 424.1 MB, free: 14.38 MB / 302.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.03516/0.1357, allocations: 30.71 MB / 454.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.1616, allocations: 24.64 MB / 479.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002105/0.1637, allocations: 47.69 kB / 479.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.1656, allocations: 0.5356 MB / 480 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00531/0.1709, allocations: 1.693 MB / 481.7 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009515/0.1804, allocations: 3.058 MB / 484.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004319/0.1848, allocations: 2.703 MB / 487.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002512/0.1873, allocations: 1.75 MB / 489.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.1893, allocations: 1.293 MB / 490.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002107/0.1914, allocations: 1.448 MB / 491.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004955/0.1919, allocations: 264 kB / 492.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007773/0.1997, allocations: 2.757 MB / 495 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008672/0.2006, allocations: 0.6154 MB / 495.6 MB, free: 6.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.2027, allocations: 1.283 MB / 496.9 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00648/0.2092, allocations: 4.119 MB / 0.4892 GB, free: 1.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2093, allocations: 4 kB / 0.4892 GB, free: 1.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2093, allocations: 0 / 0.4892 GB, free: 1.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001358/0.2094, allocations: 0 / 0.4892 GB, free: 1.344 MB / 366.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.00715/0.2166, allocations: 2.971 MB / 0.4921 GB, free: 14.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2166, allocations: 8.031 kB / 0.4922 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002355/0.219, allocations: 0.5052 MB / 0.4926 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.2213, allocations: 1.244 MB / 0.4939 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.2216, allocations: 220 kB / 0.4941 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005267/0.2221, allocations: 223.9 kB / 0.4943 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005099/0.2272, allocations: 2.681 MB / 0.4969 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.457e-05/0.2273, allocations: 7.938 kB / 0.4969 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/0.2275, allocations: 88 kB / 0.497 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.576e-05/0.2276, allocations: 55.94 kB / 0.497 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/0.2323, allocations: 3.156 MB / 0.5001 GB, free: 5.953 MB / 382.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.2108/0.4431, allocations: 9.237 MB / 0.5091 GB, free: 73.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/0.4462, allocations: 1.853 MB / 0.511 GB, free: 73.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.4475, allocations: 0.8966 MB / 0.5118 GB, free: 73.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.4577, allocations: 7.454 MB / 0.5191 GB, free: 67.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.4578, allocations: 59.22 kB / 0.5192 GB, free: 67.61 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00102/0.4588, allocations: 203.4 kB / 0.5194 GB, free: 67.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 5.931e-06/0.4588, allocations: 0.8438 kB / 0.5194 GB, free: 67.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03625/0.4951, allocations: 9.493 MB / 0.5286 GB, free: 63.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.4952, allocations: 120 kB / 0.5287 GB, free: 63.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4967, allocations: 1.341 MB / 0.5301 GB, free: 62.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002067/0.4969, allocations: 50.36 kB / 0.5301 GB, free: 62.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004932/0.4974, allocations: 1.056 MB / 0.5311 GB, free: 61.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/0.4978, allocations: 0.5576 MB / 0.5317 GB, free: 61.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006089/0.4984, allocations: 474.1 kB / 0.5321 GB, free: 61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.258e-05/0.4985, allocations: 303.9 kB / 0.5324 GB, free: 60.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.4997, allocations: 0.8468 MB / 0.5333 GB, free: 60.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.5012, allocations: 1.705 MB / 0.5349 GB, free: 58.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.504, allocations: 2.703 MB / 0.5376 GB, free: 56.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.504, allocations: 6.688 kB / 0.5376 GB, free: 56.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007783/0.5118, allocations: 3.471 MB / 0.541 GB, free: 53.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.5119, allocations: 25.08 kB / 0.541 GB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/0.5119, allocations: 28 kB / 0.541 GB, free: 53.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005274/0.5172, allocations: 1.167 MB / 0.5421 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.519, allocations: 0.5118 MB / 0.5426 GB, free: 52.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008432/0.5275, allocations: 7.618 MB / 0.5501 GB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/0.5296, allocations: 136.9 kB / 0.5502 GB, free: 43.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.5298, allocations: 143.9 kB / 0.5503 GB, free: 43.72 MB / 382.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.000843/0.5307, allocations: 447.6 kB / 0.5508 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/0.531, allocations: 158 kB / 0.5509 GB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007586/0.5386, allocations: 2.852 MB / 0.5537 GB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/0.5387, allocations: 16 kB / 0.5537 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.5387, allocations: 9.344 kB / 0.5537 GB, free: 40.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.486e-05/0.5387, allocations: 11.91 kB / 0.5537 GB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.5493, allocations: 4.861 MB / 0.5585 GB, free: 35.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/0.5494, allocations: 4 kB / 0.5585 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.5505, allocations: 262.3 kB / 0.5587 GB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00468/0.5552, allocations: 1.04 MB / 0.5598 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002279/0.5555, allocations: 55.97 kB / 0.5598 GB, free: 34.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006881/0.5624, allocations: 6.919 MB / 0.5666 GB, free: 26.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5624, allocations: 7.469 kB / 0.5666 GB, free: 26.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007736/0.5702, allocations: 3.667 MB / 0.5702 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004511/0.5706, allocations: 223 kB / 0.5704 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.5709, allocations: 38.69 kB / 0.5704 GB, free: 22.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.572, allocations: 58.62 kB / 0.5705 GB, free: 22.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.5724, allocations: 153 kB / 0.5706 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.5725, allocations: 71.95 kB / 0.5707 GB, free: 22.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008894/0.5734, allocations: 0.8829 MB / 0.5715 GB, free: 21.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5734, allocations: 4 kB / 0.5715 GB, free: 21.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003341/0.5768, allocations: 1.088 MB / 0.5726 GB, free: 20.61 MB / 382.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.001876/0.5786, allocations: 1.129 MB / 0.5737 GB, free: 19.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005813/0.5845, allocations: 2.999 MB / 0.5766 GB, free: 16.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.5845, allocations: 0 / 0.5766 GB, free: 16.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.5867, allocations: 1.458 MB / 0.5781 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.5885, allocations: 286.3 kB / 0.5783 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005856/0.5944, allocations: 4.621 MB / 0.5829 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006609/0.5951, allocations: 1.394 MB / 0.5842 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007205/0.5958, allocations: 294.1 kB / 0.5845 GB, free: 8.812 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5958, allocations: 0 / 0.5845 GB, free: 8.812 MB / 382.1 MB Notification: Performance of Templates: time 0.07512/0.671, allocations: 71.89 MB / 0.6547 GB, free: 1.426 MB / 446.1 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)