Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.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.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001145, 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.001171/0.001171, allocations: 191.4 kB / 16.25 MB, free: 6.641 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.384/1.384, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2154/0.2154, allocations: 15.32 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 59.91 kB / 369.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09796, 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:3019:6-3019:65: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:3019:6-3019: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.WaterElectrolysis): time 0.3888/0.4868, allocations: 28.76 MB / 452.2 MB, free: 39.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01818/0.505, allocations: 17.68 MB / 469.9 MB, free: 31.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.5073, allocations: 42.88 kB / 469.9 MB, free: 31.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.509, allocations: 422.6 kB / 470.3 MB, free: 31.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004936/0.514, allocations: 1.184 MB / 471.5 MB, free: 30.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008415/0.5224, allocations: 2.258 MB / 473.8 MB, free: 29.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00374/0.5262, allocations: 2.283 MB / 476.1 MB, free: 28.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001923/0.5282, allocations: 1.511 MB / 477.6 MB, free: 27.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.53, allocations: 1.063 MB / 478.6 MB, free: 27.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.5317, allocations: 1.169 MB / 479.8 MB, free: 26.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003546/0.5321, allocations: 227.1 kB / 480 MB, free: 26.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008083/0.5402, allocations: 1.86 MB / 481.9 MB, free: 26.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008232/0.541, allocations: 0.499 MB / 482.4 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001832/0.5429, allocations: 1.108 MB / 483.5 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.5548, allocations: 4.009 MB / 487.5 MB, free: 23.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.5549, allocations: 0 / 487.5 MB, free: 23.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5549, allocations: 4 kB / 487.5 MB, free: 23.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.853e-05/0.555, allocations: 0 / 487.5 MB, free: 23.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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.005546/0.5605, allocations: 2.491 MB / 490 MB, free: 22.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5606, allocations: 11.12 kB / 490 MB, free: 22.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/0.5625, allocations: 428.3 kB / 490.4 MB, free: 21.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.5645, allocations: 1.085 MB / 491.5 MB, free: 21.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.5646, allocations: 180.9 kB / 491.7 MB, free: 21.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.5649, allocations: 202 kB / 491.9 MB, free: 21.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/0.5683, allocations: 2.132 MB / 494 MB, free: 20.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.864e-05/0.5683, allocations: 3.938 kB / 494 MB, free: 20.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.5685, allocations: 82.09 kB / 494.1 MB, free: 20.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.5685, allocations: 49.75 kB / 494.1 MB, free: 20.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003148/0.5717, allocations: 2.232 MB / 496.4 MB, free: 19.45 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.01045/0.5821, allocations: 7.357 MB / 0.4919 GB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.5845, allocations: 1.735 MB / 0.4936 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000745/0.5853, allocations: 0.5827 MB / 0.4942 GB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00838/0.5937, allocations: 6.392 MB / 0.5004 GB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.5937, allocations: 44.12 kB / 0.5005 GB, free: 5.348 MB / 366.1 MB Notification: Performance of pre-optimization done (n=88): time 4.689e-06/0.5938, allocations: 0 / 0.5005 GB, free: 5.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01851/0.6123, allocations: 4.852 MB / 0.5052 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.6124, allocations: 115.8 kB / 0.5053 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009395/0.6133, allocations: 0.9158 MB / 0.5062 GB, free: 8 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.6135, allocations: 41.7 kB / 0.5063 GB, free: 15.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005751/0.614, allocations: 0.9364 MB / 0.5072 GB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003148/0.6144, allocations: 386.7 kB / 0.5075 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004313/0.6148, allocations: 347.1 kB / 0.5079 GB, free: 14.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.6149, allocations: 305.1 kB / 0.5082 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007237/0.6156, allocations: 451.8 kB / 0.5086 GB, free: 13.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.6169, allocations: 1.199 MB / 0.5098 GB, free: 11.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.6191, allocations: 1.794 MB / 0.5115 GB, free: 9.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.6191, allocations: 7.938 kB / 0.5115 GB, free: 9.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005141/0.6242, allocations: 2.065 MB / 0.5135 GB, free: 7.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.6243, allocations: 16 kB / 0.5136 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.083e-05/0.6243, allocations: 24 kB / 0.5136 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/0.6269, allocations: 382.7 kB / 0.5139 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.6286, allocations: 443.4 kB / 0.5144 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005507/0.6341, allocations: 4.089 MB / 0.5184 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.6359, allocations: 131.5 kB / 0.5185 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.6361, allocations: 108 kB / 0.5186 GB, free: 2.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008425/0.637, allocations: 381.1 kB / 0.5189 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/0.6373, allocations: 118.5 kB / 0.5191 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00497/0.6423, allocations: 1.625 MB / 0.5206 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.6423, allocations: 12 kB / 0.5207 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6423, allocations: 0 / 0.5207 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.6423, allocations: 3.984 kB / 0.5207 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/0.6448, allocations: 1.493 MB / 0.5221 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.6448, allocations: 0 / 0.5221 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.646, allocations: 243.6 kB / 0.5224 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.6485, allocations: 354.5 kB / 0.5227 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.6486, allocations: 43.98 kB / 0.5227 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004876/0.6535, allocations: 3.998 MB / 0.5266 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6535, allocations: 3.938 kB / 0.5266 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/0.6586, allocations: 2.211 MB / 0.5288 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006692/0.6593, allocations: 191.5 kB / 0.529 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.6597, allocations: 27.94 kB / 0.529 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.6607, allocations: 47.88 kB / 0.5291 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.661, allocations: 100.8 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.6611, allocations: 51.98 kB / 0.5292 GB, free: 6.891 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009323/0.662, allocations: 0.5736 MB / 0.5298 GB, free: 6.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.662, allocations: 0 / 0.5298 GB, free: 6.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003126/0.6652, allocations: 0.7222 MB / 0.5305 GB, free: 5.586 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.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 (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002018/0.6672, allocations: 0.7114 MB / 0.5312 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003734/0.671, allocations: 1.616 MB / 0.5327 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.671, allocations: 0 / 0.5327 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.6725, allocations: 0.8354 MB / 0.5336 GB, free: 2.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.6744, allocations: 244.4 kB / 0.5338 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006217/0.6807, allocations: 3.796 MB / 0.5375 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.6818, allocations: 1.259 MB / 0.5387 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001534/0.6834, allocations: 338.9 kB / 0.539 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/0.6839, allocations: 211.3 kB / 0.5393 GB, free: 12.44 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6839, allocations: 0 / 0.5393 GB, free: 12.44 MB / 414.1 MB Notification: Performance of Templates: time 0.0405/0.7244, allocations: 24.98 MB / 0.5636 GB, free: 3.516 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile Failed to read output from testmodel.py, exit status != 0: 0.725955851841718 0.742893403 0.185875423 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