Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001359/0.001359, allocations: 195.5 kB / 16.25 MB, free: 6.617 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2392/0.2392, allocations: 15.32 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 59.91 kB / 369.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1256, allocations: 53.61 MB / 423.4 MB, free: 14.64 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.H2O_ElectrochemicalCell): time 0.4154/0.541, allocations: 28.09 MB / 451.5 MB, free: 38.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.5572, allocations: 19.22 MB / 470.7 MB, free: 30.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.559, allocations: 42.03 kB / 470.8 MB, free: 30.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.5604, allocations: 453.8 kB / 471.2 MB, free: 29.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003486/0.5639, allocations: 1.115 MB / 472.3 MB, free: 29.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007742/0.5716, allocations: 2.543 MB / 474.9 MB, free: 27.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003165/0.5748, allocations: 2.09 MB / 477 MB, free: 26.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.5766, allocations: 1.35 MB / 478.3 MB, free: 26.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.5783, allocations: 0.9311 MB / 479.3 MB, free: 25.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.5796, allocations: 1.067 MB / 480.3 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002689/0.5799, allocations: 199.1 kB / 480.5 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006443/0.5863, allocations: 2.103 MB / 482.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003534/0.5867, allocations: 476.7 kB / 483.1 MB, free: 24.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.5882, allocations: 0.9894 MB / 484.1 MB, free: 23.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008897/0.5971, allocations: 4.015 MB / 488.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.5971, allocations: 0 / 488.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.5971, allocations: 0 / 488.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000112/0.5972, allocations: 0 / 488.1 MB, free: 22.11 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.006076/0.6033, allocations: 2.346 MB / 490.4 MB, free: 20.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.6034, allocations: 11.72 kB / 490.4 MB, free: 20.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002253/0.6056, allocations: 424.9 kB / 490.9 MB, free: 20.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002222/0.6079, allocations: 1.044 MB / 491.9 MB, free: 19.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.608, allocations: 195.5 kB / 492.1 MB, free: 19.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003162/0.6084, allocations: 163.7 kB / 492.3 MB, free: 19.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003458/0.6118, allocations: 2.209 MB / 494.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.6119, allocations: 3.938 kB / 494.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.612, allocations: 66.44 kB / 494.5 MB, free: 18.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.6121, allocations: 43.8 kB / 494.6 MB, free: 18.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003364/0.6154, allocations: 2.666 MB / 497.2 MB, free: 17.91 MB / 366.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.00952/0.625, allocations: 7.256 MB / 0.4927 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.6263, allocations: 1.185 MB / 0.4938 GB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006566/0.627, allocations: 0.5531 MB / 0.4944 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006595/0.6336, allocations: 5.132 MB / 0.4994 GB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.6337, allocations: 51.72 kB / 0.4994 GB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006842/0.6343, allocations: 114.4 kB / 0.4995 GB, free: 6.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 5.23e-06/0.6344, allocations: 4 kB / 0.4995 GB, free: 6.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01771/0.6521, allocations: 4.793 MB / 0.5042 GB, free: 2.246 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.6521, allocations: 124.4 kB / 0.5043 GB, free: 2.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.6535, allocations: 1.472 MB / 0.5058 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.291e-05/0.6536, allocations: 41.7 kB / 0.5058 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004002/0.654, allocations: 0.8936 MB / 0.5067 GB, free: 15.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.6543, allocations: 343.2 kB / 0.507 GB, free: 15.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004891/0.6548, allocations: 355.1 kB / 0.5074 GB, free: 15.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.921e-05/0.6548, allocations: 301.1 kB / 0.5076 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009028/0.6558, allocations: 0.6247 MB / 0.5083 GB, free: 14.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.6571, allocations: 1.325 MB / 0.5096 GB, free: 12.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.6594, allocations: 1.925 MB / 0.5114 GB, free: 10.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/0.6594, allocations: 8 kB / 0.5114 GB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005133/0.6646, allocations: 2.362 MB / 0.5137 GB, free: 7.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.6646, allocations: 18.03 kB / 0.5138 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.541e-05/0.6646, allocations: 27.94 kB / 0.5138 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002522/0.6672, allocations: 379.5 kB / 0.5142 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002458/0.6696, allocations: 0.5578 MB / 0.5147 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008044/0.6777, allocations: 7.923 MB / 0.5224 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.6799, allocations: 95.8 kB / 0.5225 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005163/0.6804, allocations: 108 kB / 0.5226 GB, free: 14.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001582/0.682, allocations: 375.4 kB / 0.523 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007778/0.6828, allocations: 126.4 kB / 0.5231 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005273/0.6881, allocations: 1.534 MB / 0.5246 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.6882, allocations: 12 kB / 0.5246 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.6882, allocations: 0 / 0.5246 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/0.6882, allocations: 3.984 kB / 0.5246 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007645/0.6958, allocations: 3.015 MB / 0.5276 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.6959, allocations: 7.938 kB / 0.5276 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.6967, allocations: 215.7 kB / 0.5278 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002765/0.6995, allocations: 416.8 kB / 0.5282 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.6996, allocations: 39.98 kB / 0.5282 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007536/0.7072, allocations: 7.707 MB / 0.5357 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.7072, allocations: 15.88 kB / 0.5358 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/0.7124, allocations: 2.171 MB / 0.5379 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005913/0.713, allocations: 199.5 kB / 0.5381 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004038/0.7134, allocations: 35.98 kB / 0.5381 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.7145, allocations: 35.98 kB / 0.5381 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.7147, allocations: 112.3 kB / 0.5382 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.945e-05/0.7148, allocations: 47.98 kB / 0.5383 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.7162, allocations: 1.021 MB / 0.5393 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7162, allocations: 4 kB / 0.5393 GB, free: 12.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003304/0.7195, allocations: 0.808 MB / 0.5401 GB, free: 11.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002088/0.7216, allocations: 0.8625 MB / 0.5409 GB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.7255, allocations: 1.82 MB / 0.5427 GB, free: 8.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.7255, allocations: 0 / 0.5427 GB, free: 8.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.7269, allocations: 1 MB / 0.5437 GB, free: 7.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.729, allocations: 234.5 kB / 0.5439 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005306/0.7343, allocations: 3.53 MB / 0.5473 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.7351, allocations: 1.231 MB / 0.5485 GB, free: 2.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001313/0.7364, allocations: 326.5 kB / 0.5489 GB, free: 2.016 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.7368, allocations: 183.3 kB / 0.549 GB, free: 1.836 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7368, allocations: 0 / 0.549 GB, free: 1.836 MB / 414.1 MB Notification: Performance of Templates: time 0.04319/0.78, allocations: 27.67 MB / 0.5761 GB, free: 6.238 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile Failed to read output from testmodel.py, exit status != 0: 0.7816025093197823 0.798218209 0.198915965 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