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.006886/0.006886, allocations: 98.8 kB / 15.73 MB, free: 6.039 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.001258/0.001259, allocations: 193.7 kB / 16.67 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2464/0.2464, allocations: 15.31 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 55.91 kB / 425.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4237, allocations: 53.61 MB / 478.8 MB, free: 25.79 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.ElectrolysisMethanation): time 0.04042/0.4641, allocations: 30.72 MB / 0.4976 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03781/0.502, allocations: 28.89 MB / 0.5258 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003119/0.5051, allocations: 27.88 kB / 0.5258 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002754/0.5079, allocations: 0.6901 MB / 0.5265 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009257/0.5172, allocations: 2.231 MB / 0.5287 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01459/0.5318, allocations: 3.914 MB / 0.5325 GB, free: 32 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006188/0.538, allocations: 3.082 MB / 0.5355 GB, free: 12.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003624/0.5417, allocations: 1.971 MB / 0.5374 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00345/0.5452, allocations: 1.445 MB / 0.5388 GB, free: 9.473 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003996/0.5492, allocations: 1.654 MB / 0.5405 GB, free: 7.812 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001234/0.5504, allocations: 296 kB / 0.5407 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01434/0.5648, allocations: 3.14 MB / 0.5438 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.5663, allocations: 0.6894 MB / 0.5445 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003627/0.5699, allocations: 1.439 MB / 0.5459 GB, free: 2.242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01932/0.5893, allocations: 6.37 MB / 0.5521 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.5893, allocations: 0 / 0.5521 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5893, allocations: 0 / 0.5521 GB, free: 11.85 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.037e-05/0.5894, allocations: 0 / 0.5521 GB, free: 11.85 MB / 430.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.007095/0.5965, allocations: 3.421 MB / 0.5554 GB, free: 8.355 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5966, allocations: 12.03 kB / 0.5555 GB, free: 8.344 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.5989, allocations: 0.5803 MB / 0.556 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.6014, allocations: 1.412 MB / 0.5574 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/0.6016, allocations: 266.1 kB / 0.5577 GB, free: 6.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003591/0.602, allocations: 247.9 kB / 0.5579 GB, free: 5.777 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004985/0.607, allocations: 3.033 MB / 0.5609 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.629e-05/0.607, allocations: 8 kB / 0.5609 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.6073, allocations: 96 kB / 0.561 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.6073, allocations: 60 kB / 0.561 GB, free: 2.477 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005519/0.6128, allocations: 3.603 MB / 0.5645 GB, free: 14.87 MB / 446.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.016/0.6289, allocations: 10.44 MB / 0.5747 GB, free: 4.055 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.632, allocations: 2.249 MB / 0.5769 GB, free: 1.684 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.6336, allocations: 1.117 MB / 0.578 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01288/0.6465, allocations: 8.759 MB / 0.5866 GB, free: 6.941 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.6465, allocations: 47.88 kB / 0.5866 GB, free: 6.887 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001298/0.6479, allocations: 266.5 kB / 0.5869 GB, free: 6.625 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 3.917e-06/0.6479, allocations: 0 / 0.5869 GB, free: 6.625 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03442/0.6823, allocations: 9.784 MB / 0.5964 GB, free: 12.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.6824, allocations: 124.8 kB / 0.5965 GB, free: 12.58 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.6843, allocations: 1.462 MB / 0.598 GB, free: 11.11 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.6844, allocations: 57.7 kB / 0.598 GB, free: 11.04 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007981/0.6852, allocations: 1.19 MB / 0.5992 GB, free: 9.844 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005534/0.6858, allocations: 0.6624 MB / 0.5998 GB, free: 9.176 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007201/0.6865, allocations: 0.517 MB / 0.6003 GB, free: 8.652 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6867, allocations: 309 kB / 0.6006 GB, free: 8.348 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/0.6882, allocations: 0.9423 MB / 0.6016 GB, free: 7.402 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.6905, allocations: 1.89 MB / 0.6034 GB, free: 5.074 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004053/0.6946, allocations: 2.996 MB / 0.6063 GB, free: 1.645 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.6946, allocations: 12 kB / 0.6063 GB, free: 1.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.336/1.031, allocations: 3.89 MB / 0.6101 GB, free: 114.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/1.031, allocations: 24.81 kB / 0.6102 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.287e-05/1.031, allocations: 31.62 kB / 0.6102 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005872/1.037, allocations: 1.183 MB / 0.6113 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002497/1.039, allocations: 0.5884 MB / 0.6119 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009961/1.049, allocations: 7.512 MB / 0.6193 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/1.052, allocations: 111.2 kB / 0.6194 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005167/1.052, allocations: 161.1 kB / 0.6195 GB, free: 108.6 MB / 478.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.001466/1.054, allocations: 484.8 kB / 0.62 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000574/1.054, allocations: 181.8 kB / 0.6201 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009425/1.064, allocations: 3.258 MB / 0.6233 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/1.064, allocations: 19.03 kB / 0.6233 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.064, allocations: 6.625 kB / 0.6234 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/1.064, allocations: 13.22 kB / 0.6234 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.076, allocations: 5.429 MB / 0.6287 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.076, allocations: 2.625 kB / 0.6287 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/1.077, allocations: 312.2 kB / 0.629 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004596/1.082, allocations: 1.048 MB / 0.63 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001857/1.082, allocations: 69.3 kB / 0.6301 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007251/1.089, allocations: 6.811 MB / 0.6367 GB, free: 98.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.089, allocations: 8.531 kB / 0.6367 GB, free: 98.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.1, allocations: 4.136 MB / 0.6408 GB, free: 96.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000694/1.1, allocations: 246 kB / 0.641 GB, free: 95.97 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/1.101, allocations: 39.44 kB / 0.641 GB, free: 95.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.102, allocations: 43.45 kB / 0.6411 GB, free: 95.92 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004613/1.102, allocations: 180.8 kB / 0.6412 GB, free: 95.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001841/1.102, allocations: 79.08 kB / 0.6413 GB, free: 95.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00146/1.104, allocations: 0.9528 MB / 0.6423 GB, free: 95.27 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.104, allocations: 4 kB / 0.6423 GB, free: 95.27 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005389/1.109, allocations: 1.272 MB / 0.6435 GB, free: 95.13 MB / 478.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.002664/1.112, allocations: 1.307 MB / 0.6448 GB, free: 94.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005539/1.117, allocations: 3.061 MB / 0.6478 GB, free: 93.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.117, allocations: 0 / 0.6478 GB, free: 93.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/1.12, allocations: 1.63 MB / 0.6494 GB, free: 92.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/1.122, allocations: 312 kB / 0.6497 GB, free: 91.95 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006754/1.129, allocations: 4.114 MB / 0.6537 GB, free: 89.64 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008524/1.129, allocations: 1.479 MB / 0.6551 GB, free: 88.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001757/1.131, allocations: 457.2 kB / 0.6555 GB, free: 88.54 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006153/1.132, allocations: 285.4 kB / 0.6558 GB, free: 88.47 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/1.132, allocations: 0 / 0.6558 GB, free: 88.47 MB / 478.1 MB Notification: Performance of Templates: time 0.05586/1.188, allocations: 46.87 MB / 0.7016 GB, free: 42.59 MB / 478.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 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)