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.001715/0.001715, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002716/0.002716, allocations: 186.7 kB / 16.25 MB, free: 6.578 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.385/1.385, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2305/0.2305, allocations: 15.31 MB / 305.4 MB, free: 15.34 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 59.91 kB / 369.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1144, allocations: 53.61 MB / 423.4 MB, free: 14.66 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.2414/0.3558, allocations: 31.16 MB / 454.6 MB, free: 38.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02699/0.3828, allocations: 28.58 MB / 483.2 MB, free: 24.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.3858, allocations: 54.5 kB / 483.2 MB, free: 24.22 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.3879, allocations: 0.6128 MB / 483.8 MB, free: 23.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008372/0.3962, allocations: 2.02 MB / 485.9 MB, free: 22.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01316/0.4094, allocations: 3.511 MB / 489.4 MB, free: 20.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005433/0.4149, allocations: 3.078 MB / 492.5 MB, free: 19.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003232/0.4182, allocations: 1.963 MB / 494.4 MB, free: 18.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.4211, allocations: 1.507 MB / 495.9 MB, free: 17.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003278/0.4244, allocations: 1.688 MB / 497.6 MB, free: 16.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.4257, allocations: 294 kB / 497.9 MB, free: 16.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01504/0.4408, allocations: 3.214 MB / 0.4894 GB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.4422, allocations: 0.7014 MB / 0.4901 GB, free: 14.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003287/0.4455, allocations: 1.441 MB / 0.4915 GB, free: 13.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.4622, allocations: 6.072 MB / 0.4974 GB, free: 8.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.4623, allocations: 0 / 0.4974 GB, free: 8.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4623, allocations: 0 / 0.4974 GB, free: 8.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001624/0.4625, allocations: 0 / 0.4974 GB, free: 8.52 MB / 366.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.007953/0.4704, allocations: 3.331 MB / 0.5006 GB, free: 5.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.4705, allocations: 12.03 kB / 0.5007 GB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002275/0.4727, allocations: 0.5602 MB / 0.5012 GB, free: 4.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.4747, allocations: 1.376 MB / 0.5025 GB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.4749, allocations: 275.4 kB / 0.5028 GB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003075/0.4752, allocations: 241 kB / 0.503 GB, free: 3.301 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0043/0.4795, allocations: 3.038 MB / 0.506 GB, free: 0.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.178e-05/0.4795, allocations: 3.938 kB / 0.506 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.4797, allocations: 96 kB / 0.5061 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.723e-05/0.4798, allocations: 60 kB / 0.5062 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004943/0.4847, allocations: 3.6 MB / 0.5097 GB, free: 13.5 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.0149/0.4996, allocations: 10.46 MB / 0.5199 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.5024, allocations: 2.253 MB / 0.5221 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.5038, allocations: 1.113 MB / 0.5232 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/0.515, allocations: 8.767 MB / 0.5317 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.515, allocations: 47.88 kB / 0.5318 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001069/0.5161, allocations: 258.1 kB / 0.532 GB, free: 5.262 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 5.601e-06/0.5161, allocations: 0 / 0.532 GB, free: 5.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.0348/0.5509, allocations: 9.704 MB / 0.5415 GB, free: 11.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.551, allocations: 128.9 kB / 0.5416 GB, free: 11.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.5529, allocations: 1.458 MB / 0.5431 GB, free: 9.816 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.5531, allocations: 57.7 kB / 0.5431 GB, free: 9.754 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008101/0.554, allocations: 1.151 MB / 0.5442 GB, free: 8.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006236/0.5546, allocations: 0.6278 MB / 0.5448 GB, free: 7.949 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008454/0.5554, allocations: 0.509 MB / 0.5453 GB, free: 7.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.5556, allocations: 317 kB / 0.5456 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00161/0.5572, allocations: 0.9344 MB / 0.5466 GB, free: 6.184 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002447/0.5597, allocations: 1.902 MB / 0.5484 GB, free: 3.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004325/0.564, allocations: 2.992 MB / 0.5513 GB, free: 424 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.542e-05/0.5641, allocations: 8 kB / 0.5513 GB, free: 416 kB / 414.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01013/0.5742, allocations: 3.897 MB / 0.5552 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.5743, allocations: 24.09 kB / 0.5552 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/0.5743, allocations: 36 kB / 0.5552 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005195/0.5795, allocations: 1.182 MB / 0.5564 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/0.5816, allocations: 0.585 MB / 0.5569 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/0.591, allocations: 7.509 MB / 0.5643 GB, free: 2.688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.5933, allocations: 147.7 kB / 0.5644 GB, free: 2.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004784/0.5938, allocations: 163.9 kB / 0.5646 GB, free: 2.383 MB / 430.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.001167/0.595, allocations: 484.8 kB / 0.565 GB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005442/0.5955, allocations: 177.8 kB / 0.5652 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009407/0.605, allocations: 3.257 MB / 0.5684 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.605, allocations: 20 kB / 0.5684 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.605, allocations: 7.984 kB / 0.5684 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/0.605, allocations: 7.969 kB / 0.5684 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.6176, allocations: 5.444 MB / 0.5737 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.6176, allocations: 4 kB / 0.5737 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.6188, allocations: 307.6 kB / 0.574 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004638/0.6234, allocations: 1.038 MB / 0.575 GB, free: 7.496 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002152/0.6237, allocations: 75.89 kB / 0.5751 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007521/0.6312, allocations: 6.812 MB / 0.5818 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6312, allocations: 0 / 0.5818 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009286/0.6405, allocations: 4.129 MB / 0.5858 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004466/0.641, allocations: 230.8 kB / 0.586 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003256/0.6413, allocations: 36 kB / 0.5861 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.6426, allocations: 83.8 kB / 0.5861 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003757/0.643, allocations: 177.6 kB / 0.5863 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.6431, allocations: 79.95 kB / 0.5864 GB, free: 11.35 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001164/0.6443, allocations: 0.9546 MB / 0.5873 GB, free: 10.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.6443, allocations: 4 kB / 0.5873 GB, free: 10.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003639/0.648, allocations: 1.237 MB / 0.5885 GB, free: 9.156 MB / 462.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.002611/0.6506, allocations: 1.303 MB / 0.5898 GB, free: 7.844 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006938/0.6575, allocations: 3.327 MB / 0.593 GB, free: 4.465 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6575, allocations: 0 / 0.593 GB, free: 4.465 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.6605, allocations: 1.626 MB / 0.5946 GB, free: 2.777 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/0.6631, allocations: 318.6 kB / 0.5949 GB, free: 2.473 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1819/0.845, allocations: 5.07 MB / 0.5999 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008565/0.8459, allocations: 1.48 MB / 0.6013 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001889/0.8478, allocations: 464.9 kB / 0.6018 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.8484, allocations: 282.9 kB / 0.602 GB, free: 128.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8484, allocations: 0 / 0.602 GB, free: 128.6 MB / 462.1 MB Notification: Performance of Templates: time 0.06416/0.9126, allocations: 46.2 MB / 0.6472 GB, free: 114.8 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile Failed to read output from testmodel.py, exit status != 0: 0.9139312230981886 0.9270067319999999 0.462997087 Traceback (most recent call last): File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./testmodel.py", line 440, in resFile = "%s_res.%s" % (conf["fileName"], outputFormat if not shared.isFMPy(fmisimulator) else 'csv') File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/shared.py", line 98, in isFMPy return 'fmpy' in fmisimulator TypeError: argument of type 'NoneType' is not iterable