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.001152/0.001152, allocations: 108.7 kB / 16.37 MB, free: 6.016 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.001144/0.001144, allocations: 197.4 kB / 17.31 MB, free: 5.613 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.342/1.342, 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.09663/0.09663, allocations: 15.3 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 65.38 kB / 371.8 MB, free: 50.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 53.61 MB / 425.4 MB, free: 13.31 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.MethanElectrosynthesis): time 0.05312/0.1591, allocations: 28.75 MB / 454.1 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03466/0.1937, allocations: 22.03 MB / 476.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.1953, allocations: 27.88 kB / 476.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.1974, allocations: 0.5816 MB / 476.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005323/0.2027, allocations: 1.342 MB / 478.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01212/0.2149, allocations: 3.281 MB / 481.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004404/0.2193, allocations: 2.398 MB / 483.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002127/0.2215, allocations: 1.571 MB / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.2228, allocations: 1.036 MB / 486.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.2242, allocations: 1.203 MB / 487.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002704/0.2245, allocations: 240 kB / 487.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007662/0.2321, allocations: 2.34 MB / 490.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.2328, allocations: 0.5297 MB / 490.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001295/0.2341, allocations: 1.136 MB / 491.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.2443, allocations: 4.843 MB / 496.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.2444, allocations: 4 kB / 496.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2444, allocations: 0 / 496.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.734e-05/0.2444, allocations: 0 / 496.7 MB, free: 5.91 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.004798/0.2492, allocations: 2.67 MB / 499.3 MB, free: 3.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2493, allocations: 12.03 kB / 499.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.2511, allocations: 0.4975 MB / 499.8 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.253, allocations: 1.185 MB / 0.4893 GB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.2532, allocations: 207.5 kB / 0.4895 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.2535, allocations: 191.9 kB / 0.4897 GB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003725/0.2572, allocations: 2.647 MB / 0.4923 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.2573, allocations: 0 / 0.4923 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.2575, allocations: 83.94 kB / 0.4923 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.2575, allocations: 44 kB / 0.4924 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004427/0.2619, allocations: 3.275 MB / 0.4956 GB, free: 10.93 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.01239/0.2743, allocations: 8.427 MB / 0.5038 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.2763, allocations: 1.322 MB / 0.5051 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000922/0.2772, allocations: 0.6341 MB / 0.5057 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1908/0.4681, allocations: 5.529 MB / 0.5111 GB, free: 74.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4681, allocations: 43.62 kB / 0.5112 GB, free: 74.12 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008178/0.469, allocations: 180.2 kB / 0.5113 GB, free: 74.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.825e-06/0.469, allocations: 1.062 kB / 0.5113 GB, free: 74.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02664/0.4956, allocations: 7.157 MB / 0.5183 GB, free: 71.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.4957, allocations: 120.2 kB / 0.5184 GB, free: 71.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.4978, allocations: 1.845 MB / 0.5202 GB, free: 70.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.498, allocations: 50.39 kB / 0.5203 GB, free: 70.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004611/0.4984, allocations: 1.011 MB / 0.5213 GB, free: 70.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/0.4987, allocations: 418 kB / 0.5217 GB, free: 69.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005356/0.4992, allocations: 414.8 kB / 0.5221 GB, free: 69.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.4993, allocations: 305.1 kB / 0.5224 GB, free: 69.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.5005, allocations: 0.859 MB / 0.5232 GB, free: 68.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.502, allocations: 1.586 MB / 0.5247 GB, free: 67.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00269/0.5047, allocations: 2.337 MB / 0.527 GB, free: 65.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.5047, allocations: 5.25 kB / 0.527 GB, free: 65.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007363/0.5121, allocations: 3.296 MB / 0.5302 GB, free: 64.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.5122, allocations: 17.75 kB / 0.5303 GB, free: 64.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.853e-05/0.5122, allocations: 22.56 kB / 0.5303 GB, free: 64.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004487/0.5167, allocations: 1.039 MB / 0.5313 GB, free: 63.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.5183, allocations: 435.3 kB / 0.5317 GB, free: 63.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007978/0.5263, allocations: 7.47 MB / 0.539 GB, free: 56.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.5281, allocations: 96.23 kB / 0.5391 GB, free: 56.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/0.5283, allocations: 124 kB / 0.5392 GB, free: 56.24 MB / 382.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.0006831/0.529, allocations: 408.1 kB / 0.5396 GB, free: 55.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.5293, allocations: 142.2 kB / 0.5397 GB, free: 55.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005707/0.535, allocations: 2.196 MB / 0.5419 GB, free: 53.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.5351, allocations: 12 kB / 0.5419 GB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.5351, allocations: 4 kB / 0.5419 GB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.5351, allocations: 3.984 kB / 0.5419 GB, free: 53.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008835/0.5439, allocations: 3.947 MB / 0.5458 GB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.544, allocations: 4 kB / 0.5458 GB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007308/0.5447, allocations: 174.4 kB / 0.5459 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004095/0.5489, allocations: 0.9301 MB / 0.5468 GB, free: 48.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/0.549, allocations: 47.91 kB / 0.5469 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006634/0.5557, allocations: 6.765 MB / 0.5535 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5557, allocations: 10.23 kB / 0.5535 GB, free: 41.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006755/0.5625, allocations: 2.909 MB / 0.5563 GB, free: 38.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004447/0.563, allocations: 203.9 kB / 0.5565 GB, free: 38.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003447/0.5633, allocations: 27.98 kB / 0.5566 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.5644, allocations: 31.98 kB / 0.5566 GB, free: 37.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.5647, allocations: 111.5 kB / 0.5567 GB, free: 37.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.5648, allocations: 51.97 kB / 0.5567 GB, free: 37.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00126/0.5661, allocations: 1.305 MB / 0.558 GB, free: 36.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5661, allocations: 0 / 0.558 GB, free: 36.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002931/0.569, allocations: 0.9598 MB / 0.559 GB, free: 35.66 MB / 382.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.001701/0.5708, allocations: 0.9853 MB / 0.5599 GB, free: 34.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003878/0.5746, allocations: 2.508 MB / 0.5624 GB, free: 32.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.5747, allocations: 2.656 kB / 0.5624 GB, free: 32.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.5764, allocations: 1.227 MB / 0.5636 GB, free: 31.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.5779, allocations: 241.5 kB / 0.5638 GB, free: 30.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/0.5826, allocations: 3.16 MB / 0.5669 GB, free: 27.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006175/0.5832, allocations: 1.31 MB / 0.5682 GB, free: 26.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009604/0.5842, allocations: 331.8 kB / 0.5685 GB, free: 26.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.5845, allocations: 182.1 kB / 0.5687 GB, free: 26.08 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5845, allocations: 2.656 kB / 0.5687 GB, free: 26.08 MB / 382.1 MB Notification: Performance of Templates: time 0.04383/0.6284, allocations: 35.99 MB / 0.6038 GB, free: 6.766 MB / 398.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)