Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, 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.00122/0.00122, allocations: 194.1 kB / 16.25 MB, free: 6.637 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.449/1.449, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2705/0.2705, allocations: 15.31 MB / 305.4 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001447, allocations: 67.89 kB / 369.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1301, 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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.4253/0.5555, allocations: 26.68 MB / 450.1 MB, free: 39.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01821/0.5737, allocations: 18 MB / 468.1 MB, free: 30.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001753/0.5755, allocations: 35.28 kB / 468.2 MB, free: 30.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.5773, allocations: 431.9 kB / 468.6 MB, free: 30.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003278/0.5806, allocations: 0.7702 MB / 469.4 MB, free: 30.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009385/0.59, allocations: 2.509 MB / 471.9 MB, free: 28.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.5929, allocations: 1.63 MB / 473.5 MB, free: 28.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.5942, allocations: 0.9116 MB / 474.4 MB, free: 27.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.5953, allocations: 0.7344 MB / 475.1 MB, free: 27.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009309/0.5962, allocations: 0.8171 MB / 476 MB, free: 27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002027/0.5964, allocations: 145 kB / 476.1 MB, free: 27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007394/0.6038, allocations: 1.798 MB / 477.9 MB, free: 26.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006174/0.6045, allocations: 364.4 kB / 478.3 MB, free: 26.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.6057, allocations: 0.7514 MB / 479 MB, free: 25.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009974/0.6157, allocations: 3.307 MB / 482.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.6158, allocations: 1.031 kB / 482.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.6158, allocations: 0 / 482.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.6158, allocations: 3.938 kB / 482.3 MB, free: 24.47 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003664/0.6195, allocations: 1.927 MB / 484.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6195, allocations: 8.469 kB / 484.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.6211, allocations: 383.6 kB / 484.6 MB, free: 23.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.6226, allocations: 0.9503 MB / 485.6 MB, free: 22.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.6227, allocations: 149 kB / 485.7 MB, free: 22.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.6229, allocations: 117.6 kB / 485.8 MB, free: 22.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002418/0.6254, allocations: 1.649 MB / 487.5 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.6254, allocations: 1.375 kB / 487.5 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.6255, allocations: 47 kB / 487.5 MB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.6256, allocations: 28.88 kB / 487.6 MB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002992/0.6286, allocations: 2.108 MB / 489.7 MB, free: 21.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00787/0.6365, allocations: 5.423 MB / 495.1 MB, free: 17.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.6376, allocations: 0.738 MB / 495.8 MB, free: 17.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.6381, allocations: 357.1 kB / 496.2 MB, free: 17.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006422/0.6445, allocations: 5.059 MB / 0.4895 GB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.6445, allocations: 39.17 kB / 0.4895 GB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003206/0.6449, allocations: 76.81 kB / 0.4896 GB, free: 13.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.944e-06/0.6449, allocations: 0 / 0.4896 GB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001205/0.6461, allocations: 0.756 MB / 0.4903 GB, free: 12.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.6461, allocations: 112.4 kB / 0.4904 GB, free: 12.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.6473, allocations: 1.197 MB / 0.4916 GB, free: 12.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.6473, allocations: 33.7 kB / 0.4916 GB, free: 12.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004047/0.6477, allocations: 0.7757 MB / 0.4924 GB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.713e-05/0.6478, allocations: 135 kB / 0.4925 GB, free: 11.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.6481, allocations: 272.7 kB / 0.4928 GB, free: 11.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.65e-05/0.6482, allocations: 352.2 kB / 0.4931 GB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.6486, allocations: 314 kB / 0.4934 GB, free: 10.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007237/0.6493, allocations: 1.049 MB / 0.4944 GB, free: 9.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.6505, allocations: 1.398 MB / 0.4958 GB, free: 8.301 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.6506, allocations: 8.625 kB / 0.4958 GB, free: 8.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00198/0.6526, allocations: 1.438 MB / 0.4972 GB, free: 7.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.6526, allocations: 20.69 kB / 0.4972 GB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.701e-05/0.6526, allocations: 30.94 kB / 0.4973 GB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006343/0.6533, allocations: 152 kB / 0.4974 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009726/0.6543, allocations: 375.9 kB / 0.4978 GB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.6563, allocations: 4.075 MB / 0.5018 GB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009153/0.6572, allocations: 77.94 kB / 0.5018 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.6573, allocations: 92.31 kB / 0.5019 GB, free: 2.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004347/0.6578, allocations: 307.7 kB / 0.5022 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.6579, allocations: 102.7 kB / 0.5023 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.6595, allocations: 0.8544 MB / 0.5031 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6595, allocations: 3.938 kB / 0.5032 GB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.6595, allocations: 4 kB / 0.5032 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.6596, allocations: 1.875 kB / 0.5032 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.6614, allocations: 1.265 MB / 0.5044 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.6615, allocations: 4.188 kB / 0.5044 GB, free: 440 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.6617, allocations: 61.73 kB / 0.5045 GB, free: 388 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006666/0.6624, allocations: 178 kB / 0.5046 GB, free: 232 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.6624, allocations: 16.75 kB / 0.5046 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002814/0.6652, allocations: 3.942 MB / 0.5085 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6652, allocations: 5.125 kB / 0.5085 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.6665, allocations: 0.8539 MB / 0.5093 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/0.6668, allocations: 176.2 kB / 0.5095 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.667, allocations: 9.5 kB / 0.5095 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.6673, allocations: 13.41 kB / 0.5095 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.6674, allocations: 36.95 kB / 0.5096 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.6675, allocations: 21.88 kB / 0.5096 GB, free: 10.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001079/0.6686, allocations: 0.8819 MB / 0.5104 GB, free: 10.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6686, allocations: 0 / 0.5104 GB, free: 10.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002081/0.6707, allocations: 0.6088 MB / 0.511 GB, free: 9.535 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001307/0.672, allocations: 0.73 MB / 0.5117 GB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.6738, allocations: 0.8053 MB / 0.5125 GB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.6738, allocations: 0 / 0.5125 GB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.6743, allocations: 389.9 kB / 0.5129 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.6755, allocations: 162.5 kB / 0.5131 GB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003459/0.679, allocations: 2.265 MB / 0.5153 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.6797, allocations: 1.063 MB / 0.5163 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001022/0.6807, allocations: 295.1 kB / 0.5166 GB, free: 4.051 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.681, allocations: 135.4 kB / 0.5167 GB, free: 3.918 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.681, allocations: 0 / 0.5167 GB, free: 3.918 MB / 382.1 MB Notification: Performance of Templates: time 0.03009/0.7111, allocations: 18.76 MB / 0.535 GB, free: 1.199 MB / 398.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile Failed to read output from testmodel.py, exit status != 0: 0.7128077037632465 0.731526569 0.11332041 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