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.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.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.001526/0.001526, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001322/0.001322, allocations: 190.9 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08258/0.08258, allocations: 15.29 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 64.23 kB / 371.8 MB, free: 50.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08389/0.08535, allocations: 53.61 MB / 425.4 MB, free: 13.32 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.ElectrolysisMethanation): time 0.05144/0.1368, allocations: 30.39 MB / 455.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0362/0.173, allocations: 28.9 MB / 484.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.1752, allocations: 27.88 kB / 484.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1776, allocations: 0.6823 MB / 485.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00722/0.1848, allocations: 2.231 MB / 487.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.1959, allocations: 3.922 MB / 491.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004728/0.2006, allocations: 3.082 MB / 494.6 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00314/0.2038, allocations: 1.967 MB / 496.6 MB, free: 6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00241/0.2062, allocations: 1.445 MB / 498 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.2091, allocations: 1.658 MB / 499.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009006/0.21, allocations: 296 kB / 500 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009448/0.2195, allocations: 3.136 MB / 0.4913 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.2207, allocations: 0.6933 MB / 0.492 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002825/0.2235, allocations: 1.435 MB / 0.4934 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01547/0.239, allocations: 6.33 MB / 0.4996 GB, free: 6.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.2391, allocations: 0 / 0.4996 GB, free: 6.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.2391, allocations: 4 kB / 0.4996 GB, free: 6.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001673/0.2393, allocations: 0 / 0.4996 GB, free: 6.965 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.009075/0.2483, allocations: 3.331 MB / 0.5028 GB, free: 3.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.2484, allocations: 12.03 kB / 0.5028 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002824/0.2512, allocations: 0.5635 MB / 0.5034 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/0.2545, allocations: 1.412 MB / 0.5048 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000291/0.2548, allocations: 262.2 kB / 0.505 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006951/0.2555, allocations: 247.9 kB / 0.5053 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1822/0.4377, allocations: 3.021 MB / 0.5082 GB, free: 75.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.4378, allocations: 7.938 kB / 0.5082 GB, free: 75.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.438, allocations: 97.09 kB / 0.5083 GB, free: 75.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.63e-05/0.4381, allocations: 58.69 kB / 0.5084 GB, free: 75.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005663/0.4437, allocations: 3.603 MB / 0.5119 GB, free: 74.83 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.01547/0.4592, allocations: 10.41 MB / 0.522 GB, free: 68.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00288/0.4621, allocations: 2.271 MB / 0.5243 GB, free: 67.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.4636, allocations: 1.112 MB / 0.5253 GB, free: 66.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.4739, allocations: 8.737 MB / 0.5339 GB, free: 59.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.4739, allocations: 58.62 kB / 0.5339 GB, free: 58.99 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001015/0.475, allocations: 258.7 kB / 0.5342 GB, free: 58.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.046e-06/0.475, allocations: 3.906 kB / 0.5342 GB, free: 58.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03097/0.5059, allocations: 9.69 MB / 0.5436 GB, free: 51.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.506, allocations: 124.8 kB / 0.5438 GB, free: 51.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.5074, allocations: 1.454 MB / 0.5452 GB, free: 49.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.5075, allocations: 60.36 kB / 0.5452 GB, free: 49.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.508, allocations: 1.15 MB / 0.5464 GB, free: 48.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003519/0.5083, allocations: 0.6292 MB / 0.547 GB, free: 48.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005922/0.5089, allocations: 0.5129 MB / 0.5475 GB, free: 47.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.509, allocations: 313 kB / 0.5478 GB, free: 47.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.5103, allocations: 0.9371 MB / 0.5487 GB, free: 46.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.5119, allocations: 1.899 MB / 0.5506 GB, free: 43.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003117/0.5151, allocations: 2.996 MB / 0.5535 GB, free: 40.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/0.5151, allocations: 8 kB / 0.5535 GB, free: 40.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009122/0.5242, allocations: 3.891 MB / 0.5573 GB, free: 36.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.766e-05/0.5243, allocations: 18.66 kB / 0.5573 GB, free: 36.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-05/0.5244, allocations: 32 kB / 0.5573 GB, free: 36.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00517/0.5295, allocations: 1.183 MB / 0.5585 GB, free: 35.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.5315, allocations: 0.5875 MB / 0.5591 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/0.5396, allocations: 7.513 MB / 0.5664 GB, free: 27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/0.5417, allocations: 114.4 kB / 0.5665 GB, free: 26.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004269/0.5422, allocations: 164.5 kB / 0.5667 GB, free: 26.73 MB / 382.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 (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 {(3,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 {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001062/0.5432, allocations: 484 kB / 0.5671 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005049/0.5437, allocations: 177.8 kB / 0.5673 GB, free: 26.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008775/0.5525, allocations: 3.254 MB / 0.5705 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.5526, allocations: 18.62 kB / 0.5705 GB, free: 22.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.5526, allocations: 4 kB / 0.5705 GB, free: 22.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.656e-05/0.5526, allocations: 15.95 kB / 0.5705 GB, free: 22.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.5647, allocations: 5.423 MB / 0.5758 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.5648, allocations: 0 / 0.5758 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.566, allocations: 310.3 kB / 0.5761 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00456/0.5706, allocations: 1.048 MB / 0.5771 GB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/0.5709, allocations: 75.83 kB / 0.5772 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006549/0.5774, allocations: 6.808 MB / 0.5838 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5775, allocations: 6.688 kB / 0.5839 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008907/0.5864, allocations: 4.128 MB / 0.5879 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.5868, allocations: 238.8 kB / 0.5881 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.5872, allocations: 36 kB / 0.5881 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.5883, allocations: 50.61 kB / 0.5882 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/0.5887, allocations: 177.6 kB / 0.5884 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.5888, allocations: 79.95 kB / 0.5884 GB, free: 4.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.5899, allocations: 0.9534 MB / 0.5894 GB, free: 3.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5899, allocations: 0 / 0.5894 GB, free: 3.066 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003539/0.5935, allocations: 1.253 MB / 0.5906 GB, free: 1.941 MB / 382.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 (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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002688/0.5962, allocations: 1.302 MB / 0.5919 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005688/0.6019, allocations: 3.057 MB / 0.5948 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.6019, allocations: 4 kB / 0.5949 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002939/0.6049, allocations: 1.634 MB / 0.5964 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.6067, allocations: 303 kB / 0.5967 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007647/0.6144, allocations: 4.04 MB / 0.6007 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.6156, allocations: 1.478 MB / 0.6021 GB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001681/0.6173, allocations: 463.1 kB / 0.6026 GB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007205/0.6181, allocations: 279.3 kB / 0.6028 GB, free: 5.891 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6181, allocations: 2.844 kB / 0.6028 GB, free: 5.891 MB / 398.1 MB Notification: Performance of Templates: time 0.07117/0.6893, allocations: 46.35 MB / 0.6481 GB, free: 8.02 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)