Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1347/0.1347, allocations: 15.27 MB / 30.53 MB, free: 3.199 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 193.3 kB / 35.63 MB, free: 2.25 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 225.7 MB / 266.3 MB, free: 6.125 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009576/0.0009578, allocations: 95.3 kB / 321.7 MB, free: 2.203 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003327, allocations: 11.03 kB / 387 MB, free: 50.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.09976, allocations: 54.64 MB / 441.7 MB, free: 14.86 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.MethanElectrosynthesis): time 0.02854/0.1283, allocations: 25.77 MB / 467.4 MB, free: 5.008 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02603/0.1544, allocations: 26.92 MB / 494.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002128/0.1566, allocations: 39.69 kB / 494.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.1584, allocations: 0.5123 MB / 494.9 MB, free: 7.969 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004649/0.1631, allocations: 1.191 MB / 496.1 MB, free: 6.77 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01086/0.174, allocations: 2.879 MB / 499 MB, free: 3.875 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003753/0.1778, allocations: 2.324 MB / 0.4896 GB, free: 1.543 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.1799, allocations: 1.294 MB / 0.4908 GB, free: 208 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.1815, allocations: 0.8838 MB / 0.4917 GB, free: 15.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001929/0.1835, allocations: 1.089 MB / 0.4927 GB, free: 14.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000549/0.184, allocations: 120 kB / 0.4929 GB, free: 14.1 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007708/0.1917, allocations: 2.16 MB / 0.495 GB, free: 11.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000782/0.1926, allocations: 430.4 kB / 0.4954 GB, free: 11.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.1943, allocations: 1.024 MB / 0.4964 GB, free: 10.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.2044, allocations: 4.448 MB / 0.5007 GB, free: 6.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2045, allocations: 4 kB / 0.5007 GB, free: 6.016 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.2045, allocations: 3.938 kB / 0.5007 GB, free: 6.012 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.2046, allocations: 3.938 kB / 0.5007 GB, free: 6.008 MB / 378.7 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.005058/0.2097, allocations: 2.26 MB / 0.5029 GB, free: 3.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2097, allocations: 9.719 kB / 0.5029 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/0.2117, allocations: 0.5053 MB / 0.5034 GB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.2138, allocations: 1.15 MB / 0.5046 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.214, allocations: 199.5 kB / 0.5048 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002867/0.2143, allocations: 191.9 kB / 0.5049 GB, free: 1.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1974/0.4117, allocations: 2.625 MB / 0.5075 GB, free: 67.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/0.4118, allocations: 3.344 kB / 0.5075 GB, free: 67.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.412, allocations: 78.78 kB / 0.5076 GB, free: 67.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.632e-05/0.412, allocations: 47.25 kB / 0.5076 GB, free: 67.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004325/0.4164, allocations: 3.261 MB / 0.5108 GB, free: 67.25 MB / 378.7 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.01266/0.429, allocations: 8.451 MB / 0.5191 GB, free: 64.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.4309, allocations: 1.314 MB / 0.5203 GB, free: 64.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/0.4319, allocations: 0.6284 MB / 0.521 GB, free: 64.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007066/0.4389, allocations: 5.462 MB / 0.5263 GB, free: 60.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.439, allocations: 47.31 kB / 0.5263 GB, free: 60.1 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006982/0.4397, allocations: 186.6 kB / 0.5265 GB, free: 59.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.154e-06/0.4397, allocations: 0 / 0.5265 GB, free: 59.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.02547/0.4652, allocations: 7.057 MB / 0.5334 GB, free: 56.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.4653, allocations: 115.6 kB / 0.5335 GB, free: 56.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.467, allocations: 1.84 MB / 0.5353 GB, free: 55.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.55e-05/0.4671, allocations: 45.89 kB / 0.5354 GB, free: 55.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.4675, allocations: 1.008 MB / 0.5363 GB, free: 54.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.4678, allocations: 418.1 kB / 0.5367 GB, free: 53.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-05/0.4679, allocations: 43.91 kB / 0.5368 GB, free: 53.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.468, allocations: 377.7 kB / 0.5371 GB, free: 53.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.4691, allocations: 0.8423 MB / 0.538 GB, free: 53.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.4706, allocations: 1.573 MB / 0.5395 GB, free: 51.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.4729, allocations: 2.312 MB / 0.5418 GB, free: 49.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.4729, allocations: 7.938 kB / 0.5418 GB, free: 49.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.006569/0.4795, allocations: 3.239 MB / 0.5449 GB, free: 48.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.4796, allocations: 16.78 kB / 0.545 GB, free: 48.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.787e-05/0.4796, allocations: 24.44 kB / 0.545 GB, free: 48.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004427/0.484, allocations: 1.006 MB / 0.546 GB, free: 47.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.4853, allocations: 436.5 kB / 0.5464 GB, free: 47.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007639/0.4929, allocations: 6.888 MB / 0.5531 GB, free: 39.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.4946, allocations: 120.9 kB / 0.5532 GB, free: 39.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.4948, allocations: 120 kB / 0.5533 GB, free: 39.65 MB / 378.7 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.0006396/0.4955, allocations: 404.3 kB / 0.5537 GB, free: 39.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.4957, allocations: 142.2 kB / 0.5538 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005627/0.5013, allocations: 2.147 MB / 0.5559 GB, free: 37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.5013, allocations: 12 kB / 0.556 GB, free: 36.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.5013, allocations: 4 kB / 0.556 GB, free: 36.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.5014, allocations: 10.64 kB / 0.556 GB, free: 36.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00802/0.5094, allocations: 3.844 MB / 0.5597 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.5094, allocations: 2.688 kB / 0.5597 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/0.5101, allocations: 175.8 kB / 0.5599 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004006/0.5141, allocations: 0.9081 MB / 0.5608 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5142, allocations: 47.97 kB / 0.5608 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006416/0.5207, allocations: 6.257 MB / 0.5669 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5207, allocations: 6.719 kB / 0.5669 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005924/0.5266, allocations: 2.845 MB / 0.5697 GB, free: 22.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.527, allocations: 235.3 kB / 0.5699 GB, free: 22.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.5273, allocations: 27.98 kB / 0.57 GB, free: 22.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009734/0.5283, allocations: 50.52 kB / 0.57 GB, free: 22.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.5286, allocations: 108.8 kB / 0.5701 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.795e-05/0.5287, allocations: 53.23 kB / 0.5702 GB, free: 21.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00131/0.53, allocations: 1.293 MB / 0.5714 GB, free: 20.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.53, allocations: 3.938 kB / 0.5714 GB, free: 20.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002912/0.5329, allocations: 0.9391 MB / 0.5724 GB, free: 19.81 MB / 378.7 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.001947/0.5349, allocations: 0.9778 MB / 0.5733 GB, free: 19.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.5386, allocations: 2.463 MB / 0.5757 GB, free: 16.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5387, allocations: 4 kB / 0.5757 GB, free: 16.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.5403, allocations: 1.206 MB / 0.5769 GB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.542, allocations: 232 kB / 0.5771 GB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00494/0.5469, allocations: 4.083 MB / 0.5811 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006883/0.5476, allocations: 1.311 MB / 0.5824 GB, free: 9.824 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001242/0.5489, allocations: 333.9 kB / 0.5827 GB, free: 9.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003793/0.5492, allocations: 182 kB / 0.5829 GB, free: 9.414 MB / 378.7 MB Notification: Performance of SimCode: time 7.12e-07/0.5493, allocations: 2.625 kB / 0.5829 GB, free: 9.414 MB / 378.7 MB Notification: Performance of Templates: time 0.0508/0.6001, allocations: 33.8 MB / 0.6159 GB, free: 7.934 MB / 410.7 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)