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.001076/0.001075, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 200 kB / 16.79 MB, free: 6.809 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.422/1.422, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2307/0.2307, allocations: 15.31 MB / 305.9 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.91 kB / 370.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1049, allocations: 53.61 MB / 423.9 MB, free: 14.8 MB / 366.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.3534/0.4583, allocations: 30.03 MB / 453.9 MB, free: 38.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.4768, allocations: 22.05 MB / 476 MB, free: 28.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.4785, allocations: 49.69 kB / 476 MB, free: 28.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.4799, allocations: 0.5163 MB / 476.6 MB, free: 28.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.4833, allocations: 1.213 MB / 477.8 MB, free: 27.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008595/0.4919, allocations: 2.874 MB / 480.6 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003013/0.4949, allocations: 2.32 MB / 483 MB, free: 24.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.4964, allocations: 1.348 MB / 484.3 MB, free: 23.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.4976, allocations: 0.9706 MB / 485.3 MB, free: 23.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.4987, allocations: 1.166 MB / 486.4 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002745/0.4989, allocations: 153.6 kB / 486.6 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007265/0.5062, allocations: 2.275 MB / 488.9 MB, free: 22.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004525/0.5067, allocations: 468.4 kB / 489.3 MB, free: 22.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00118/0.5079, allocations: 1.064 MB / 490.4 MB, free: 21.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004641/0.5125, allocations: 3.572 MB / 494 MB, free: 20.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.5126, allocations: 0.7969 kB / 494 MB, free: 20.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.5126, allocations: 7.812 kB / 494 MB, free: 20.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.433e-05/0.5126, allocations: 0 / 494 MB, free: 20.13 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.004351/0.517, allocations: 2.675 MB / 496.6 MB, free: 18.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.517, allocations: 7.969 kB / 496.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.5189, allocations: 0.4916 MB / 497.1 MB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.5205, allocations: 1.158 MB / 498.3 MB, free: 17.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.5206, allocations: 211.2 kB / 498.5 MB, free: 17.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.5208, allocations: 190.1 kB / 498.7 MB, free: 17.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003682/0.5245, allocations: 2.645 MB / 0.4896 GB, free: 16.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.5246, allocations: 2.812 kB / 0.4896 GB, free: 16.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.5247, allocations: 75.56 kB / 0.4897 GB, free: 16.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.5248, allocations: 50.41 kB / 0.4897 GB, free: 16.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004006/0.5288, allocations: 3.278 MB / 0.4929 GB, free: 13.67 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.01072/0.5395, allocations: 8.468 MB / 0.5012 GB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.5411, allocations: 1.337 MB / 0.5025 GB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.5419, allocations: 0.632 MB / 0.5031 GB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007021/0.549, allocations: 5.555 MB / 0.5085 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.549, allocations: 51.09 kB / 0.5086 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007655/0.5498, allocations: 174.4 kB / 0.5087 GB, free: 14.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.036e-06/0.5498, allocations: 0 / 0.5087 GB, free: 14.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02729/0.5771, allocations: 7.008 MB / 0.5156 GB, free: 7.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.5772, allocations: 111.8 kB / 0.5157 GB, free: 7.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/0.5794, allocations: 1.849 MB / 0.5175 GB, free: 5.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.5796, allocations: 45.7 kB / 0.5175 GB, free: 5.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000676/0.5802, allocations: 1.014 MB / 0.5185 GB, free: 4.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.5806, allocations: 418.2 kB / 0.5189 GB, free: 3.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000614/0.5813, allocations: 411.2 kB / 0.5193 GB, free: 3.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.5814, allocations: 305.1 kB / 0.5196 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.5827, allocations: 0.8434 MB / 0.5204 GB, free: 2.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.5845, allocations: 1.577 MB / 0.522 GB, free: 308 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003056/0.5876, allocations: 2.321 MB / 0.5243 GB, free: 13.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.5876, allocations: 8 kB / 0.5243 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008013/0.5957, allocations: 3.252 MB / 0.5274 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.5957, allocations: 16 kB / 0.5274 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.789e-05/0.5958, allocations: 24 kB / 0.5275 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004978/0.6008, allocations: 1.001 MB / 0.5284 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.6024, allocations: 427.4 kB / 0.5289 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009899/0.6123, allocations: 6.873 MB / 0.5356 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002034/0.6144, allocations: 115.7 kB / 0.5357 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002421/0.6147, allocations: 120 kB / 0.5358 GB, free: 1.359 MB / 398.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.0008761/0.6155, allocations: 405.1 kB / 0.5362 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003927/0.6159, allocations: 142.2 kB / 0.5363 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006448/0.6224, allocations: 2.145 MB / 0.5384 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.6224, allocations: 16 kB / 0.5384 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.6224, allocations: 0 / 0.5384 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.6225, allocations: 7.984 kB / 0.5384 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009019/0.6315, allocations: 3.85 MB / 0.5422 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.6315, allocations: 4 kB / 0.5422 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.6323, allocations: 171.8 kB / 0.5424 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004312/0.6366, allocations: 0.8996 MB / 0.5432 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.6367, allocations: 43.97 kB / 0.5433 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007583/0.6443, allocations: 6.25 MB / 0.5494 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.6444, allocations: 0 / 0.5494 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006842/0.6512, allocations: 2.838 MB / 0.5522 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.6517, allocations: 215.2 kB / 0.5524 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.6519, allocations: 24 kB / 0.5524 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009217/0.6528, allocations: 43.92 kB / 0.5524 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/0.6531, allocations: 112.8 kB / 0.5525 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.6532, allocations: 51.97 kB / 0.5526 GB, free: 15.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001479/0.6547, allocations: 1.298 MB / 0.5539 GB, free: 14.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6547, allocations: 0 / 0.5539 GB, free: 14.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003064/0.6578, allocations: 0.9564 MB / 0.5548 GB, free: 13.26 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.002098/0.6599, allocations: 0.9796 MB / 0.5557 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004616/0.6645, allocations: 2.477 MB / 0.5582 GB, free: 9.734 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/0.6646, allocations: 4 kB / 0.5582 GB, free: 9.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.6666, allocations: 1.217 MB / 0.5594 GB, free: 8.449 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.6685, allocations: 229.3 kB / 0.5596 GB, free: 8.223 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/0.675, allocations: 4.036 MB / 0.5635 GB, free: 4.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.676, allocations: 1.307 MB / 0.5648 GB, free: 2.793 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006568/0.6767, allocations: 223.3 kB / 0.565 GB, free: 2.574 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6767, allocations: 0 / 0.565 GB, free: 2.574 MB / 430.1 MB Notification: Performance of Templates: time 0.2311/0.9078, allocations: 64.47 MB / 0.628 GB, free: 125.7 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)