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.0007904/0.0007904, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005105/0.005105, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.365/1.365, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1865/0.1865, allocations: 15.27 MB / 306.7 MB, free: 15.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.000313, allocations: 8 kB / 372.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.326, allocations: 54.62 MB / 426.7 MB, free: 40.61 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.03028/0.3564, allocations: 28.87 MB / 455.6 MB, free: 29.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02143/0.3778, allocations: 21.82 MB / 477.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.38, allocations: 41.69 kB / 477.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001785/0.3818, allocations: 0.5141 MB / 478 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004831/0.3866, allocations: 1.212 MB / 479.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01084/0.3975, allocations: 2.878 MB / 482 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003462/0.401, allocations: 2.321 MB / 484.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.4026, allocations: 1.277 MB / 485.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.4037, allocations: 0.9107 MB / 486.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.4049, allocations: 1.092 MB / 487.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.4052, allocations: 120 kB / 487.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008727/0.4139, allocations: 2.244 MB / 490 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009002/0.4148, allocations: 428.7 kB / 490.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.4164, allocations: 1.024 MB / 491.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.4303, allocations: 4.479 MB / 495.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4303, allocations: 0 / 495.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4303, allocations: 3.938 kB / 495.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.883e-05/0.4304, allocations: 0 / 495.9 MB, free: 15.39 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005221/0.4356, allocations: 2.269 MB / 498.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4357, allocations: 12.03 kB / 498.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001918/0.4376, allocations: 0.5012 MB / 498.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.4396, allocations: 1.139 MB / 499.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.4399, allocations: 204.3 kB / 0.4883 GB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003376/0.4402, allocations: 196.5 kB / 0.4885 GB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00446/0.4447, allocations: 2.654 MB / 0.4911 GB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.393e-05/0.4447, allocations: 3.938 kB / 0.4911 GB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001799/0.4449, allocations: 76 kB / 0.4912 GB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.445, allocations: 48 kB / 0.4912 GB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004983/0.4499, allocations: 3.274 MB / 0.4944 GB, free: 6.195 MB / 366.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.0125/0.4625, allocations: 8.451 MB / 0.5027 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.4645, allocations: 1.329 MB / 0.504 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009866/0.4655, allocations: 0.6368 MB / 0.5046 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00908/0.4746, allocations: 5.468 MB / 0.5099 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.4747, allocations: 55.08 kB / 0.51 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009341/0.4756, allocations: 174.4 kB / 0.5102 GB, free: 5.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 5.601e-06/0.4757, allocations: 0 / 0.5102 GB, free: 5.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02893/0.5046, allocations: 7.059 MB / 0.5171 GB, free: 14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.994e-05/0.5047, allocations: 119.8 kB / 0.5172 GB, free: 13.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.5075, allocations: 1.849 MB / 0.519 GB, free: 12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.5077, allocations: 45.7 kB / 0.519 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.5085, allocations: 1.014 MB / 0.52 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000485/0.509, allocations: 414.2 kB / 0.5204 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.5093, allocations: 169.7 kB / 0.5206 GB, free: 10.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5095, allocations: 301.1 kB / 0.5209 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.5111, allocations: 0.8434 MB / 0.5217 GB, free: 9.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.5134, allocations: 1.577 MB / 0.5232 GB, free: 7.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004127/0.5175, allocations: 2.317 MB / 0.5255 GB, free: 4.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.269e-05/0.5175, allocations: 8 kB / 0.5255 GB, free: 4.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00936/0.5269, allocations: 3.264 MB / 0.5287 GB, free: 1.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.111e-05/0.527, allocations: 12 kB / 0.5287 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-05/0.527, allocations: 24 kB / 0.5287 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005041/0.5321, allocations: 1.007 MB / 0.5297 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5339, allocations: 435.3 kB / 0.5301 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009837/0.5437, allocations: 6.9 MB / 0.5368 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.5457, allocations: 119.6 kB / 0.537 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/0.5461, allocations: 124 kB / 0.5371 GB, free: 8.266 MB / 414.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.001038/0.5471, allocations: 397.1 kB / 0.5375 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.5475, allocations: 146.3 kB / 0.5376 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006666/0.5542, allocations: 2.152 MB / 0.5397 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.5542, allocations: 19.94 kB / 0.5397 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.5543, allocations: 0 / 0.5397 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/0.5543, allocations: 11.97 kB / 0.5397 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009525/0.5638, allocations: 3.842 MB / 0.5435 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.5639, allocations: 8.094 kB / 0.5435 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.5646, allocations: 175.7 kB / 0.5437 GB, free: 1.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004527/0.5692, allocations: 0.9169 MB / 0.5446 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.5693, allocations: 43.97 kB / 0.5446 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007913/0.5772, allocations: 6.272 MB / 0.5507 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.5773, allocations: 4.031 kB / 0.5507 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006986/0.5843, allocations: 2.846 MB / 0.5535 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005052/0.5848, allocations: 247.2 kB / 0.5537 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.5851, allocations: 24 kB / 0.5538 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.5861, allocations: 51.81 kB / 0.5538 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/0.5864, allocations: 112.8 kB / 0.5539 GB, free: 6.375 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.5865, allocations: 47.97 kB / 0.554 GB, free: 6.328 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001647/0.5882, allocations: 1.302 MB / 0.5552 GB, free: 5.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5882, allocations: 0 / 0.5552 GB, free: 5.023 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003558/0.5918, allocations: 0.9525 MB / 0.5562 GB, free: 4.07 MB / 430.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.002526/0.5943, allocations: 0.9897 MB / 0.5571 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004675/0.599, allocations: 2.472 MB / 0.5595 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.599, allocations: 6 kB / 0.5596 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.6011, allocations: 1.216 MB / 0.5607 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.6031, allocations: 231.5 kB / 0.561 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006544/0.6096, allocations: 4.08 MB / 0.5649 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.6107, allocations: 1.322 MB / 0.5662 GB, free: 9.535 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001417/0.6121, allocations: 340 kB / 0.5666 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004366/0.6126, allocations: 183.3 kB / 0.5667 GB, free: 9.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.001e-06/0.6126, allocations: 0 / 0.5667 GB, free: 9.02 MB / 446.1 MB Notification: Performance of Templates: time 0.2273/0.8399, allocations: 33.93 MB / 0.5999 GB, free: 131.2 MB / 462.1 MB 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)