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.001517/0.001517, allocations: 110.8 kB / 16.41 MB, free: 6.492 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.001499/0.001499, allocations: 187 kB / 17.34 MB, free: 5.766 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08117/0.08117, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 72.11 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 53.61 MB / 479.5 MB, free: 5.781 MB / 350.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.03916/0.1419, allocations: 30.62 MB / 0.4981 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2768/0.4187, allocations: 28.87 MB / 0.5263 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002429/0.4211, allocations: 31.59 kB / 0.5264 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002862/0.424, allocations: 0.6837 MB / 0.527 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009639/0.4337, allocations: 2.232 MB / 0.5292 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01505/0.4488, allocations: 3.916 MB / 0.533 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005778/0.4546, allocations: 3.083 MB / 0.536 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003615/0.4582, allocations: 1.974 MB / 0.538 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003284/0.4615, allocations: 1.455 MB / 0.5394 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003444/0.465, allocations: 1.649 MB / 0.541 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.4662, allocations: 295.6 kB / 0.5413 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01551/0.4817, allocations: 3.14 MB / 0.5443 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.483, allocations: 0.6936 MB / 0.545 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002853/0.4859, allocations: 1.437 MB / 0.5464 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0194/0.5053, allocations: 6.351 MB / 0.5526 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5054, allocations: 0 / 0.5526 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5054, allocations: 0 / 0.5526 GB, free: 11.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.5056, allocations: 0 / 0.5526 GB, free: 11.59 MB / 398.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.008207/0.5138, allocations: 3.33 MB / 0.5559 GB, free: 8.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.5138, allocations: 8.031 kB / 0.5559 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002384/0.5162, allocations: 0.5659 MB / 0.5564 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/0.5186, allocations: 1.408 MB / 0.5578 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.5189, allocations: 270.4 kB / 0.5581 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003937/0.5193, allocations: 247.8 kB / 0.5583 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004991/0.5243, allocations: 3.039 MB / 0.5613 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/0.5243, allocations: 0 / 0.5613 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002469/0.5246, allocations: 101.3 kB / 0.5614 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.302e-05/0.5246, allocations: 60 kB / 0.5614 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005858/0.5305, allocations: 3.606 MB / 0.565 GB, free: 14.77 MB / 414.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.01745/0.548, allocations: 10.41 MB / 0.5751 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003247/0.5513, allocations: 2.251 MB / 0.5773 GB, free: 1.664 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001697/0.553, allocations: 1.121 MB / 0.5784 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/0.5664, allocations: 8.733 MB / 0.5869 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.5665, allocations: 55.8 kB / 0.587 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001268/0.5678, allocations: 266.4 kB / 0.5872 GB, free: 6.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 1.084e-05/0.5678, allocations: 3.984 kB / 0.5873 GB, free: 6.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03721/0.605, allocations: 9.714 MB / 0.5967 GB, free: 12.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.6052, allocations: 123.5 kB / 0.5969 GB, free: 12.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.6072, allocations: 1.458 MB / 0.5983 GB, free: 11.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000295/0.6075, allocations: 53.7 kB / 0.5983 GB, free: 11.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000801/0.6083, allocations: 1.151 MB / 0.5995 GB, free: 10.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007482/0.6091, allocations: 0.6239 MB / 0.6001 GB, free: 9.434 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008732/0.61, allocations: 0.5194 MB / 0.6006 GB, free: 8.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.6101, allocations: 305.1 kB / 0.6009 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.6117, allocations: 0.9423 MB / 0.6018 GB, free: 7.664 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002479/0.6142, allocations: 1.9 MB / 0.6036 GB, free: 5.352 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004517/0.6188, allocations: 2.988 MB / 0.6066 GB, free: 2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.244e-05/0.6188, allocations: 8 kB / 0.6066 GB, free: 1.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01083/0.6297, allocations: 3.892 MB / 0.6104 GB, free: 14.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.6297, allocations: 19.94 kB / 0.6104 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.403e-05/0.6298, allocations: 35.83 kB / 0.6104 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005296/0.6351, allocations: 1.176 MB / 0.6116 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002231/0.6374, allocations: 0.585 MB / 0.6121 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.6477, allocations: 7.511 MB / 0.6195 GB, free: 4.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002334/0.6501, allocations: 109.2 kB / 0.6196 GB, free: 4.281 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005362/0.6506, allocations: 162.5 kB / 0.6197 GB, free: 4.125 MB / 462.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.001355/0.652, allocations: 487.5 kB / 0.6202 GB, free: 3.641 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/0.6528, allocations: 177.8 kB / 0.6204 GB, free: 3.465 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/0.6633, allocations: 3.257 MB / 0.6235 GB, free: 280 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.132e-05/0.6634, allocations: 22.62 kB / 0.6236 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.132e-05/0.6634, allocations: 0 / 0.6236 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/0.6634, allocations: 11.97 kB / 0.6236 GB, free: 248 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.678, allocations: 5.439 MB / 0.6289 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.678, allocations: 4 kB / 0.6289 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.6794, allocations: 310.2 kB / 0.6292 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004878/0.6843, allocations: 1.042 MB / 0.6302 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002798/0.6846, allocations: 71.95 kB / 0.6303 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009239/0.6938, allocations: 6.802 MB / 0.6369 GB, free: 2.094 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.6939, allocations: 4 kB / 0.6369 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/0.7047, allocations: 4.135 MB / 0.641 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005875/0.7054, allocations: 238.8 kB / 0.6412 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/0.7059, allocations: 40 kB / 0.6412 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.7073, allocations: 51.92 kB / 0.6413 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000483/0.7078, allocations: 177.6 kB / 0.6414 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/0.708, allocations: 80.09 kB / 0.6415 GB, free: 13.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001499/0.7095, allocations: 0.9507 MB / 0.6424 GB, free: 12.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7095, allocations: 4 kB / 0.6425 GB, free: 12.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004433/0.714, allocations: 1.249 MB / 0.6437 GB, free: 11.09 MB / 494.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.00305/0.717, allocations: 1.297 MB / 0.6449 GB, free: 9.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006129/0.7232, allocations: 3.058 MB / 0.6479 GB, free: 6.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.7232, allocations: 4.062 kB / 0.6479 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003546/0.7268, allocations: 1.629 MB / 0.6495 GB, free: 4.984 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.7291, allocations: 313.9 kB / 0.6498 GB, free: 4.703 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008225/0.7373, allocations: 4.068 MB / 0.6538 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.7387, allocations: 1.478 MB / 0.6552 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009519/0.7397, allocations: 359 kB / 0.6556 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.7397, allocations: 0 / 0.6556 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of Templates: time 0.3247/1.064, allocations: 80.53 MB / 0.7342 GB, free: 185.2 MB / 0.545 GB 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)