Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 110.5 kB / 16.41 MB, free: 6.453 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.001315/0.001315, allocations: 185.6 kB / 17.34 MB, free: 5.738 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08457/0.08457, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 68.11 kB / 425.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09823, allocations: 53.6 MB / 479.5 MB, free: 5.949 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.MethanElectrosynthesis): time 0.03711/0.1354, allocations: 28.96 MB / 0.4965 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2527/0.3881, allocations: 22.03 MB / 0.518 GB, free: 17.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.3898, allocations: 19.62 kB / 0.518 GB, free: 17.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.3917, allocations: 0.584 MB / 0.5186 GB, free: 17.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004441/0.3962, allocations: 1.339 MB / 0.5199 GB, free: 16.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01009/0.4063, allocations: 3.282 MB / 0.5231 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004278/0.4106, allocations: 2.39 MB / 0.5255 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/0.4132, allocations: 1.574 MB / 0.527 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.4151, allocations: 1.038 MB / 0.528 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002046/0.4172, allocations: 1.203 MB / 0.5292 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005703/0.4178, allocations: 232.2 kB / 0.5294 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009489/0.4273, allocations: 2.346 MB / 0.5317 GB, free: 12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009489/0.4283, allocations: 0.5339 MB / 0.5322 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.43, allocations: 1.139 MB / 0.5333 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4417, allocations: 4.846 MB / 0.5381 GB, free: 8.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4418, allocations: 1.375 kB / 0.5381 GB, free: 8.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4418, allocations: 2.625 kB / 0.5381 GB, free: 8.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.103e-05/0.4418, allocations: 0 / 0.5381 GB, free: 8.172 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.00508/0.4469, allocations: 2.682 MB / 0.5407 GB, free: 6.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.447, allocations: 8.25 kB / 0.5407 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001867/0.4488, allocations: 0.4936 MB / 0.5412 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.4509, allocations: 1.183 MB / 0.5423 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.451, allocations: 202 kB / 0.5425 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.4513, allocations: 196.2 kB / 0.5427 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00349/0.4548, allocations: 2.646 MB / 0.5453 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.4549, allocations: 3.938 kB / 0.5453 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.4551, allocations: 76 kB / 0.5454 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.4551, allocations: 48 kB / 0.5454 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003726/0.4588, allocations: 3.274 MB / 0.5486 GB, free: 15.65 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.01256/0.4714, allocations: 8.435 MB / 0.5569 GB, free: 6.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.4734, allocations: 1.317 MB / 0.5581 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000922/0.4743, allocations: 0.6341 MB / 0.5588 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008443/0.4828, allocations: 5.54 MB / 0.5642 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.4828, allocations: 47.22 kB / 0.5642 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009534/0.4838, allocations: 188.9 kB / 0.5644 GB, free: 14.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 3.667e-06/0.4838, allocations: 0 / 0.5644 GB, free: 14.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.02755/0.5114, allocations: 7.168 MB / 0.5714 GB, free: 7.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.5114, allocations: 119.7 kB / 0.5715 GB, free: 7.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.5136, allocations: 1.853 MB / 0.5733 GB, free: 5.438 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.5138, allocations: 48.33 kB / 0.5734 GB, free: 5.387 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006498/0.5145, allocations: 1.002 MB / 0.5743 GB, free: 4.367 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.5149, allocations: 418.2 kB / 0.5747 GB, free: 3.953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005872/0.5155, allocations: 415 kB / 0.5751 GB, free: 3.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.977e-05/0.5156, allocations: 305.1 kB / 0.5754 GB, free: 3.238 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.5168, allocations: 0.8577 MB / 0.5763 GB, free: 2.379 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.5186, allocations: 1.58 MB / 0.5778 GB, free: 480 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002943/0.5216, allocations: 2.34 MB / 0.5801 GB, free: 13.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.5216, allocations: 4 kB / 0.5801 GB, free: 13.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007828/0.5295, allocations: 3.299 MB / 0.5833 GB, free: 10.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.5295, allocations: 16 kB / 0.5833 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.015e-05/0.5296, allocations: 24 kB / 0.5834 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004713/0.5343, allocations: 1.046 MB / 0.5844 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.5359, allocations: 423.3 kB / 0.5848 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009453/0.5453, allocations: 7.476 MB / 0.5921 GB, free: 1.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5473, allocations: 98.39 kB / 0.5922 GB, free: 1.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002364/0.5476, allocations: 116 kB / 0.5923 GB, free: 0.9727 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007319/0.5483, allocations: 411.7 kB / 0.5927 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.5486, allocations: 146.1 kB / 0.5928 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006403/0.5551, allocations: 2.196 MB / 0.595 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/0.5551, allocations: 12 kB / 0.595 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.5551, allocations: 7.938 kB / 0.595 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.5551, allocations: 7.969 kB / 0.595 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009653/0.5648, allocations: 3.937 MB / 0.5988 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.5649, allocations: 4 kB / 0.5988 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007602/0.5656, allocations: 170.5 kB / 0.599 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004273/0.5699, allocations: 0.9218 MB / 0.5999 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.5701, allocations: 47.95 kB / 0.5999 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007931/0.578, allocations: 6.769 MB / 0.6066 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.5781, allocations: 0 / 0.6066 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007149/0.5852, allocations: 2.906 MB / 0.6094 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005145/0.5858, allocations: 217.9 kB / 0.6096 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/0.586, allocations: 27.94 kB / 0.6096 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008993/0.5869, allocations: 31.98 kB / 0.6097 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003021/0.5872, allocations: 111.4 kB / 0.6098 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.5874, allocations: 55.95 kB / 0.6098 GB, free: 14.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00158/0.5889, allocations: 1.298 MB / 0.6111 GB, free: 13.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.589, allocations: 0 / 0.6111 GB, free: 13.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0034/0.5924, allocations: 0.9603 MB / 0.612 GB, free: 12.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001998/0.5944, allocations: 0.9933 MB / 0.613 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004608/0.599, allocations: 2.513 MB / 0.6155 GB, free: 8.723 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.599, allocations: 0 / 0.6155 GB, free: 8.723 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.6012, allocations: 1.229 MB / 0.6167 GB, free: 7.434 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.603, allocations: 239.2 kB / 0.6169 GB, free: 7.219 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/0.6086, allocations: 3.2 MB / 0.62 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008387/0.6095, allocations: 1.314 MB / 0.6213 GB, free: 2.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006271/0.6101, allocations: 226 kB / 0.6215 GB, free: 2.531 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6101, allocations: 2.656 kB / 0.6215 GB, free: 2.531 MB / 462.1 MB Notification: Performance of Templates: time 0.06633/0.6765, allocations: 64.74 MB / 0.6847 GB, free: 2.02 MB / 0.5137 GB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)