Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.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.Hemoglobin.HemoglobinTitration,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration") translateModel(Chemical.Examples.Hemoglobin.HemoglobinTitration,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 99.36 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.002359/0.002368, allocations: 193.3 kB / 16.25 MB, free: 6.629 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.44/1.44, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3222/0.3222, allocations: 15.32 MB / 305.4 MB, free: 15.29 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.89 kB / 369.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1467, allocations: 53.61 MB / 423.4 MB, free: 14.62 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.Hemoglobin.HemoglobinTitration): time 0.3571/0.5038, allocations: 43.69 MB / 467.1 MB, free: 35.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.08519/0.589, allocations: 71.81 MB / 0.5263 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01048/0.5995, allocations: 103.2 kB / 0.5264 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008113/0.6077, allocations: 1.454 MB / 0.5278 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02863/0.6363, allocations: 5.332 MB / 0.533 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03848/0.6749, allocations: 9.178 MB / 0.542 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03315/0.708, allocations: 26.7 MB / 0.5681 GB, free: 1.707 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03392/0.742, allocations: 21.86 MB / 0.5894 GB, free: 11.73 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.6542/1.396, allocations: 18.77 MB / 0.6077 GB, free: 24.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03578/1.432, allocations: 16.51 MB / 0.6239 GB, free: 24.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.02081/1.453, allocations: 3.094 MB / 0.6269 GB, free: 24.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05917/1.512, allocations: 10.89 MB / 0.6375 GB, free: 24.16 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.02064/1.533, allocations: 7.078 MB / 0.6444 GB, free: 23.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.04312/1.576, allocations: 12.28 MB / 0.6564 GB, free: 17.28 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07963/1.656, allocations: 41.29 MB / 0.6967 GB, free: 12.7 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/1.656, allocations: 0 / 0.6967 GB, free: 12.7 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.382e-06/1.656, allocations: 0 / 0.6967 GB, free: 12.7 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001289/1.657, allocations: 0 / 0.6967 GB, free: 12.7 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3812 * Number of variables: 3812 Notification: Performance of Generate backend data structure: time 0.1121/1.769, allocations: 24.77 MB / 0.7209 GB, free: 4.207 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.133e-05/1.769, allocations: 10.66 kB / 0.7209 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03325/1.802, allocations: 3.891 MB / 0.7247 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03449/1.837, allocations: 11.76 MB / 0.7362 GB, free: 4.941 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002616/1.84, allocations: 2.138 MB / 0.7383 GB, free: 2.59 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01265/1.852, allocations: 1.535 MB / 0.7398 GB, free: 1.055 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1026/1.955, allocations: 34.8 MB / 0.7738 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007868/1.956, allocations: 10.84 kB / 0.7738 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01017/1.966, allocations: 0.5859 MB / 0.7744 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003678/1.966, allocations: 362.6 kB / 0.7747 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5985/2.565, allocations: 46.84 MB / 0.8205 GB, free: 186.4 MB / 0.5608 GB 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.3003/2.865, allocations: 128 MB / 0.9455 GB, free: 101.6 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8617/3.727, allocations: 276.1 MB / 1.215 GB, free: 64.27 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03566/3.763, allocations: 19.81 MB / 1.234 GB, free: 45.36 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4438/4.207, allocations: 87.62 MB / 1.32 GB, free: 166 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/4.207, allocations: 134.2 kB / 1.32 GB, free: 165.9 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02865/4.236, allocations: 4.515 MB / 1.325 GB, free: 164.9 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=996): time 8.913e-05/4.236, allocations: 0.6094 kB / 1.325 GB, free: 164.9 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1130): time 0.7388/4.975, allocations: 136.6 MB / 1.458 GB, free: 63.67 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/4.975, allocations: 169.8 kB / 1.458 GB, free: 63.49 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3215/5.296, allocations: 10.15 MB / 1.468 GB, free: 176.3 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.005594/5.302, allocations: 213.7 kB / 1.468 GB, free: 176.3 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.006427/5.308, allocations: 6.9 MB / 1.475 GB, free: 174.7 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.009599/5.318, allocations: 3.911 MB / 1.479 GB, free: 171.8 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.02162/5.34, allocations: 3.26 MB / 1.482 GB, free: 170.6 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 7.576e-05/5.34, allocations: 302.9 kB / 1.482 GB, free: 170.3 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02359/5.363, allocations: 11.82 MB / 1.494 GB, free: 166 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02978/5.393, allocations: 16.56 MB / 1.51 GB, free: 155.8 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06243/5.456, allocations: 29.75 MB / 1.539 GB, free: 140.1 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003977/5.456, allocations: 45.84 kB / 1.539 GB, free: 140.1 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4266/5.883, allocations: 81.47 MB / 1.619 GB, free: 87.16 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003239/5.883, allocations: 68 kB / 1.619 GB, free: 87.09 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003851/5.883, allocations: 148 kB / 1.619 GB, free: 86.95 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05383/5.937, allocations: 22.37 MB / 1.641 GB, free: 64.73 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01679/5.954, allocations: 3.726 MB / 1.644 GB, free: 61 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.478/6.432, allocations: 93.97 MB / 1.736 GB, free: 140.1 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0216/6.454, allocations: 1.15 MB / 1.737 GB, free: 139.5 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006749/6.461, allocations: 0.9331 MB / 1.738 GB, free: 139.2 MB / 0.5608 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 677 * 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 (1843): * Single equations (assignments): 1840 * 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): 2 systems {(1,3,100.0%), (33,10,82.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.02094/6.482, allocations: 5.38 MB / 1.743 GB, free: 136.2 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008036/6.49, allocations: 1.054 MB / 1.744 GB, free: 136.2 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2545/6.744, allocations: 48.64 MB / 1.792 GB, free: 99.83 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001206/6.744, allocations: 122 kB / 1.792 GB, free: 99.71 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001587/6.744, allocations: 16.5 kB / 1.792 GB, free: 99.7 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004354/6.745, allocations: 65.55 kB / 1.792 GB, free: 99.64 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4989/7.244, allocations: 73.08 MB / 1.863 GB, free: 146 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001349/7.244, allocations: 3.594 kB / 1.863 GB, free: 146 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01343/7.257, allocations: 2.424 MB / 1.866 GB, free: 146 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03031/7.288, allocations: 11.9 MB / 1.877 GB, free: 145.9 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004407/7.292, allocations: 478.2 kB / 1.878 GB, free: 145.9 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1143/7.407, allocations: 46.95 MB / 1.924 GB, free: 131.9 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/7.407, allocations: 8.812 kB / 1.924 GB, free: 131.9 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2543/7.661, allocations: 62.77 MB / 1.985 GB, free: 101.6 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01035/7.671, allocations: 3.302 MB / 1.988 GB, free: 98.83 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005067/7.676, allocations: 295.9 kB / 1.989 GB, free: 98.54 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01258/7.689, allocations: 0.7867 MB / 1.989 GB, free: 97.77 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006295/7.695, allocations: 1.511 MB / 1.991 GB, free: 96.26 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002645/7.698, allocations: 471.6 kB / 1.991 GB, free: 95.8 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.009943/7.708, allocations: 6.97 MB / 1.998 GB, free: 88.88 MB / 0.5608 GB Notification: Performance of sort global known variables: time 4.41e-07/7.708, allocations: 0 / 1.998 GB, free: 88.88 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.03443/7.742, allocations: 6.669 MB / 2.005 GB, free: 82.57 MB / 0.5608 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 60 (solution.temperature,O2_free.logn,H2O.logn,relaxed.OxyHm[1].logn,relaxed.OxyHm[2].logn,relaxed.OxyHm[3].logn,relaxed.OxyHm[4].logn,relaxed.DeoxyHm[1].logn,relaxed.DeoxyHm[2].logn,relaxed.DeoxyHm[3].logn,relaxed.DeoxyHm[4].logn,relaxed.HmAH[1].logn,relaxed.HmAH[2].logn,relaxed.HmAH[3].logn,relaxed.HmAH[4].logn,relaxed.HmA[1].logn,relaxed.HmA[2].logn,relaxed.HmA[3].logn,relaxed.HmA[4].logn,relaxed.HmNH3[1].logn,relaxed.HmNH3[2].logn,relaxed.HmNH3[3].logn,relaxed.HmNH3[4].logn,relaxed.HmNH2[1].logn,relaxed.HmNH2[2].logn,relaxed.HmNH2[3].logn,relaxed.HmNH2[4].logn,relaxed.HmNHCOO[1].logn,relaxed.HmNHCOO[2].logn,relaxed.HmNHCOO[3].logn,relaxed.HmNHCOO[4].logn,tensed.OxyHm[1].logn,tensed.OxyHm[2].logn,tensed.OxyHm[3].logn,tensed.OxyHm[4].logn,tensed.DeoxyHm[1].logn,tensed.DeoxyHm[2].logn,tensed.DeoxyHm[3].logn,tensed.DeoxyHm[4].logn,tensed.HmAH[1].logn,tensed.HmAH[2].logn,tensed.HmAH[3].logn,tensed.HmAH[4].logn,tensed.HmA[1].logn,tensed.HmA[2].logn,tensed.HmA[3].logn,tensed.HmA[4].logn,tensed.HmNH3[1].logn,tensed.HmNH3[2].logn,tensed.HmNH3[3].logn,tensed.HmNH3[4].logn,tensed.HmNH2[1].logn,tensed.HmNH2[2].logn,tensed.HmNH2[3].logn,tensed.HmNH2[4].logn,tensed.HmNHCOO[1].logn,tensed.HmNHCOO[2].logn,tensed.HmNHCOO[3].logn,tensed.HmNHCOO[4].logn,CO2_free.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 (1235): * Single equations (assignments): 1232 * 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): 2 systems {(1,3,100.0%), (33,10,82.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0116/7.754, allocations: 3.543 MB / 2.008 GB, free: 79.92 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.4649/8.219, allocations: 108.8 MB / 2.114 GB, free: 158.1 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/8.219, allocations: 4 kB / 2.114 GB, free: 158 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.03884/8.258, allocations: 14.9 MB / 2.129 GB, free: 145.6 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02238/8.28, allocations: 2.501 MB / 2.131 GB, free: 143.7 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09743/8.378, allocations: 44.5 MB / 2.175 GB, free: 104.5 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01473/8.393, allocations: 9.947 MB / 2.184 GB, free: 97.29 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.01913/8.412, allocations: 5.314 MB / 2.19 GB, free: 93.97 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009232/8.421, allocations: 1.449 MB / 2.191 GB, free: 92.75 MB / 0.5608 GB Notification: Performance of SimCode: time 1.042e-06/8.421, allocations: 4 kB / 2.191 GB, free: 92.75 MB / 0.5608 GB Notification: Performance of Templates: time 0.7952/9.216, allocations: 325.8 MB / 2.509 GB, free: 129.4 MB / 0.5608 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.makefile Failed to read output from testmodel.py, exit status != 0: 9.217956798151135 9.231019184 7.5734659 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