Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009432/0.0009434, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001161/0.001161, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 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: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2242/0.2242, allocations: 15.27 MB / 306.2 MB, free: 15.78 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003276, allocations: 8 kB / 371.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3645, allocations: 54.62 MB / 426 MB, free: 40.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.ElectrolysisMethanation): time 0.009731/0.3743, allocations: 10.14 MB / 436.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02446/0.3988, allocations: 24.49 MB / 460.6 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002698/0.4015, allocations: 48.41 kB / 460.7 MB, free: 18.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.4037, allocations: 0.638 MB / 461.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007624/0.4114, allocations: 2.327 MB / 463.6 MB, free: 16.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01267/0.4241, allocations: 3.494 MB / 467.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005031/0.4291, allocations: 2.053 MB / 469.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00244/0.4316, allocations: 1.539 MB / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002621/0.4342, allocations: 1.089 MB / 471.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003576/0.4378, allocations: 1.417 MB / 473.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009825/0.4388, allocations: 160.8 kB / 473.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01509/0.4539, allocations: 3.433 MB / 476.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001409/0.4554, allocations: 0.5273 MB / 477.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.4567, allocations: 488.2 kB / 477.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01203/0.4687, allocations: 3.86 MB / 481.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.4688, allocations: 0 / 481.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.4688, allocations: 0 / 481.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.4689, allocations: 1.219 kB / 481.7 MB, free: 9.504 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.00875/0.4777, allocations: 2.794 MB / 484.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4777, allocations: 9.469 kB / 484.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003054/0.4808, allocations: 0.5648 MB / 485 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.4841, allocations: 1.293 MB / 486.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/0.4844, allocations: 266.4 kB / 486.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006255/0.485, allocations: 242.6 kB / 486.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005691/0.4907, allocations: 3.004 MB / 489.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.431e-05/0.4908, allocations: 5.344 kB / 489.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000248/0.4911, allocations: 97.88 kB / 489.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.273e-05/0.4911, allocations: 62.08 kB / 490 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005168/0.4963, allocations: 3.59 MB / 493.6 MB, free: 2.273 MB / 350.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.01733/0.5137, allocations: 10.37 MB / 0.4921 GB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.5168, allocations: 2.245 MB / 0.4943 GB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01375/0.5306, allocations: 8.564 MB / 0.5027 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/0.5307, allocations: 55.77 kB / 0.5028 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001375/0.5321, allocations: 257.9 kB / 0.503 GB, free: 11.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.72e-06/0.5321, allocations: 0 / 0.503 GB, free: 11.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03493/0.567, allocations: 9.727 MB / 0.5125 GB, free: 1.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.138e-05/0.5672, allocations: 128.7 kB / 0.5126 GB, free: 1.438 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.569, allocations: 1.451 MB / 0.514 GB, free: 15.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.5692, allocations: 57.7 kB / 0.5141 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007268/0.57, allocations: 1.147 MB / 0.5152 GB, free: 14.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005315/0.5705, allocations: 0.6317 MB / 0.5158 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.5706, allocations: 56 kB / 0.5159 GB, free: 14.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.5708, allocations: 407.4 kB / 0.5163 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.5723, allocations: 0.9305 MB / 0.5172 GB, free: 12.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.5744, allocations: 1.878 MB / 0.519 GB, free: 10.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001867/0.5763, allocations: 1.193 MB / 0.5202 GB, free: 9.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.5763, allocations: 8 kB / 0.5202 GB, free: 9.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009881/0.5862, allocations: 3.877 MB / 0.524 GB, free: 5.301 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.5863, allocations: 23.98 kB / 0.524 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.201e-05/0.5864, allocations: 32.09 kB / 0.524 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005707/0.5921, allocations: 1.198 MB / 0.5252 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/0.5946, allocations: 0.5889 MB / 0.5258 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009897/0.6045, allocations: 6.982 MB / 0.5326 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002809/0.6073, allocations: 159.5 kB / 0.5327 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003121/0.6076, allocations: 155.9 kB / 0.5329 GB, free: 11.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 18,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001054/0.6087, allocations: 493.1 kB / 0.5334 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003486/0.6091, allocations: 173.8 kB / 0.5335 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00971/0.6188, allocations: 3.264 MB / 0.5367 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.6188, allocations: 20 kB / 0.5367 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.6188, allocations: 4 kB / 0.5367 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.937e-05/0.6189, allocations: 15.95 kB / 0.5368 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.6318, allocations: 5.413 MB / 0.542 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.6318, allocations: 4 kB / 0.542 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.6331, allocations: 307.6 kB / 0.5423 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005041/0.6382, allocations: 1.058 MB / 0.5434 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000196/0.6384, allocations: 75.89 kB / 0.5434 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00812/0.6465, allocations: 6.376 MB / 0.5497 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.6466, allocations: 4 kB / 0.5497 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.6566, allocations: 4.284 MB / 0.5539 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006877/0.6573, allocations: 243 kB / 0.5541 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.6576, allocations: 39.98 kB / 0.5541 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.6588, allocations: 75.81 kB / 0.5542 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.6592, allocations: 181.7 kB / 0.5544 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001715/0.6593, allocations: 87.92 kB / 0.5545 GB, free: 4.906 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.6606, allocations: 0.9351 MB / 0.5554 GB, free: 3.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6606, allocations: 3.938 kB / 0.5554 GB, free: 3.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004433/0.6651, allocations: 1.218 MB / 0.5566 GB, free: 2.75 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 19,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002363/0.6675, allocations: 1.268 MB / 0.5578 GB, free: 1.469 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005428/0.6729, allocations: 2.996 MB / 0.5607 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.6729, allocations: 4 kB / 0.5607 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002719/0.6756, allocations: 1.618 MB / 0.5623 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.6772, allocations: 269.3 kB / 0.5626 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007549/0.6847, allocations: 4.962 MB / 0.5674 GB, free: 7.445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.6858, allocations: 1.521 MB / 0.5689 GB, free: 5.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001843/0.6877, allocations: 469.3 kB / 0.5693 GB, free: 5.441 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006086/0.6883, allocations: 289.1 kB / 0.5696 GB, free: 5.164 MB / 446.1 MB Notification: Performance of SimCode: time 1.804e-06/0.6883, allocations: 0 / 0.5696 GB, free: 5.164 MB / 446.1 MB Notification: Performance of Templates: time 0.2402/0.9285, allocations: 42.59 MB / 0.6112 GB, free: 134.6 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile Environment - environmentSimulation: (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) Environment - environmentSimulation: