Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.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.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009386/0.0009385, 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.001011/0.001011, allocations: 193.9 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.604/1.604, 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.3992/0.3992, allocations: 15.32 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.89 kB / 369.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1463, allocations: 53.61 MB / 423.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.009053/0.1554, allocations: 7.969 MB / 431.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3777/0.5332, allocations: 21.49 MB / 452.9 MB, free: 38.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002414/0.5357, allocations: 34.19 kB / 452.9 MB, free: 38.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.5372, allocations: 406.2 kB / 453.3 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00674/0.5441, allocations: 1.508 MB / 454.8 MB, free: 37.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01144/0.5555, allocations: 2.508 MB / 457.3 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003885/0.5595, allocations: 1.82 MB / 459.2 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.5613, allocations: 0.9123 MB / 460.1 MB, free: 36.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.5629, allocations: 0.8986 MB / 461 MB, free: 35.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.5643, allocations: 0.9613 MB / 461.9 MB, free: 35.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002443/0.5645, allocations: 154.1 kB / 462.1 MB, free: 35.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.5762, allocations: 2.374 MB / 464.5 MB, free: 34.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008698/0.5771, allocations: 365.6 kB / 464.8 MB, free: 34.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.5786, allocations: 0.8003 MB / 465.6 MB, free: 34.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01568/0.5943, allocations: 3.93 MB / 469.5 MB, free: 32.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.5944, allocations: 3.938 kB / 469.5 MB, free: 32.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5944, allocations: 0.9375 kB / 469.5 MB, free: 32.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.648e-05/0.5944, allocations: 0 / 469.5 MB, free: 32.48 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.00427/0.5987, allocations: 2.074 MB / 471.6 MB, free: 31.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.5988, allocations: 13.28 kB / 471.6 MB, free: 31.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001841/0.6006, allocations: 378.7 kB / 472 MB, free: 31.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.6019, allocations: 0.7263 MB / 472.7 MB, free: 30.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.927e-05/0.602, allocations: 96.56 kB / 472.8 MB, free: 30.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002512/0.6022, allocations: 130.2 kB / 473 MB, free: 30.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003089/0.6053, allocations: 1.753 MB / 474.7 MB, free: 29.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.6054, allocations: 9.281 kB / 474.7 MB, free: 29.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.6055, allocations: 50.56 kB / 474.8 MB, free: 29.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.093e-05/0.6056, allocations: 33.86 kB / 474.8 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00414/0.6097, allocations: 2.481 MB / 477.3 MB, free: 28.99 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.009502/0.6192, allocations: 5.103 MB / 482.4 MB, free: 26.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004017/0.6233, allocations: 2.247 MB / 484.6 MB, free: 25.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009555/0.6242, allocations: 0.5536 MB / 485.2 MB, free: 24.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00847/0.6327, allocations: 5.324 MB / 490.5 MB, free: 20.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.6328, allocations: 39.66 kB / 490.5 MB, free: 20.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.895e-06/0.6328, allocations: 0 / 490.5 MB, free: 20.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01676/0.6496, allocations: 3.37 MB / 493.9 MB, free: 19.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.6497, allocations: 65.66 kB / 494 MB, free: 19.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002781/0.6525, allocations: 1.295 MB / 495.3 MB, free: 18.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.6527, allocations: 40.45 kB / 495.3 MB, free: 18.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/0.6532, allocations: 0.6811 MB / 496 MB, free: 17.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.6537, allocations: 323.5 kB / 496.3 MB, free: 17.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006309/0.6543, allocations: 291.3 kB / 496.6 MB, free: 17.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6545, allocations: 357.8 kB / 496.9 MB, free: 17.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.6555, allocations: 0.5168 MB / 497.5 MB, free: 17.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.657, allocations: 0.9974 MB / 498.5 MB, free: 16.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002064/0.6591, allocations: 1.432 MB / 499.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.923e-05/0.6591, allocations: 3.719 kB / 499.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00555/0.6647, allocations: 1.904 MB / 0.49 GB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.6647, allocations: 10.41 kB / 0.49 GB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.141e-05/0.6648, allocations: 16.45 kB / 0.4901 GB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.667, allocations: 249.9 kB / 0.4903 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.6684, allocations: 352.3 kB / 0.4906 GB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005454/0.6738, allocations: 3.873 MB / 0.4944 GB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.6756, allocations: 80.16 kB / 0.4945 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.6758, allocations: 82.09 kB / 0.4946 GB, free: 10.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006118/0.6764, allocations: 286.9 kB / 0.4948 GB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.6766, allocations: 110.6 kB / 0.495 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.6806, allocations: 1.256 MB / 0.4962 GB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.6806, allocations: 12 kB / 0.4962 GB, free: 9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.6807, allocations: 0.75 kB / 0.4962 GB, free: 9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.6807, allocations: 8.484 kB / 0.4962 GB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/0.6826, allocations: 1.113 MB / 0.4973 GB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.6827, allocations: 0 / 0.4973 GB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006163/0.6833, allocations: 177.6 kB / 0.4975 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.6852, allocations: 230.6 kB / 0.4977 GB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.6853, allocations: 35.03 kB / 0.4977 GB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004705/0.6901, allocations: 3.77 MB / 0.5014 GB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6901, allocations: 7.969 kB / 0.5014 GB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004163/0.6942, allocations: 1.59 MB / 0.503 GB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006297/0.6949, allocations: 174.8 kB / 0.5031 GB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.6951, allocations: 16 kB / 0.5031 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000604/0.6957, allocations: 45.75 kB / 0.5032 GB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/0.6959, allocations: 76.45 kB / 0.5032 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.426e-05/0.696, allocations: 42 kB / 0.5033 GB, free: 2.035 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.6971, allocations: 0.9078 MB / 0.5042 GB, free: 1.188 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6971, allocations: 3.938 kB / 0.5042 GB, free: 1.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003153/0.7002, allocations: 0.8353 MB / 0.505 GB, free: 356 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003452/0.7037, allocations: 0.9917 MB / 0.506 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003824/0.7075, allocations: 1.453 MB / 0.5074 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.7076, allocations: 0 / 0.5074 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.7089, allocations: 0.6942 MB / 0.5081 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/0.7108, allocations: 233.8 kB / 0.5083 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.7159, allocations: 2.646 MB / 0.5109 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009988/0.7169, allocations: 1.077 MB / 0.5119 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001389/0.7183, allocations: 261.7 kB / 0.5122 GB, free: 8.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000462/0.7188, allocations: 174.8 kB / 0.5123 GB, free: 8.719 MB / 382.1 MB Notification: Performance of SimCode: time 1.923e-06/0.7188, allocations: 0 / 0.5123 GB, free: 8.719 MB / 382.1 MB Notification: Performance of Templates: time 0.04805/0.7669, allocations: 27.87 MB / 0.5396 GB, free: 12.93 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility_blood.makefile Failed to read output from testmodel.py, exit status != 0: 0.7685457621701062 0.785900733 0.189236535 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