Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.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.Allosteric_Hemoglobin2_MWC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC") translateModel(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, 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.001104/0.001104, allocations: 190.6 kB / 16.25 MB, free: 6.625 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.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2696/0.2696, allocations: 15.32 MB / 305.4 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 59.84 kB / 369.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1736, allocations: 53.61 MB / 423.4 MB, free: 14.67 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.Allosteric_Hemoglobin2_MWC): time 0.4774/0.651, allocations: 29.32 MB / 452.8 MB, free: 38.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03105/0.6821, allocations: 25.75 MB / 478.5 MB, free: 25.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003628/0.6857, allocations: 42.56 kB / 478.6 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002172/0.6879, allocations: 0.53 MB / 479.1 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009225/0.6972, allocations: 1.928 MB / 481 MB, free: 24.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01332/0.7105, allocations: 3.143 MB / 484.2 MB, free: 22.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01086/0.7214, allocations: 7.393 MB / 491.5 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009266/0.7307, allocations: 5.899 MB / 497.4 MB, free: 16.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01123/0.742, allocations: 5.251 MB / 0.4909 GB, free: 14.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01176/0.7538, allocations: 4.72 MB / 0.4955 GB, free: 11.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005691/0.7596, allocations: 0.668 MB / 0.4962 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01812/0.7777, allocations: 3.397 MB / 0.4995 GB, free: 7.352 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004629/0.7824, allocations: 1.809 MB / 0.5013 GB, free: 5.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008549/0.791, allocations: 3.376 MB / 0.5046 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03104/0.822, allocations: 10.81 MB / 0.5151 GB, free: 8.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/0.8221, allocations: 4 kB / 0.5151 GB, free: 8.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.8221, allocations: 0 / 0.5151 GB, free: 8.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003832/0.8225, allocations: 0 / 0.5151 GB, free: 8.262 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1226 * Number of variables: 1226 Notification: Performance of Generate backend data structure: time 0.02383/0.8464, allocations: 7.424 MB / 0.5224 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.171e-05/0.8464, allocations: 12.03 kB / 0.5224 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006528/0.853, allocations: 1.211 MB / 0.5236 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008702/0.8617, allocations: 3.138 MB / 0.5266 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007405/0.8625, allocations: 0.6805 MB / 0.5273 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003179/0.8657, allocations: 0.4923 MB / 0.5278 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/0.8926, allocations: 9.364 MB / 0.5369 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.629e-05/0.8928, allocations: 4 kB / 0.5369 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008814/0.8937, allocations: 192 kB / 0.5371 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.8938, allocations: 116 kB / 0.5372 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.9214, allocations: 12.59 MB / 0.5495 GB, free: 4.676 MB / 414.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.07052/0.992, allocations: 30.23 MB / 0.579 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3779/1.37, allocations: 41.27 MB / 0.6193 GB, free: 106.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008776/1.379, allocations: 5.067 MB / 0.6243 GB, free: 106.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03921/1.418, allocations: 20.92 MB / 0.6447 GB, free: 96.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/1.418, allocations: 66.61 kB / 0.6448 GB, free: 96.75 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004499/1.423, allocations: 0.9623 MB / 0.6457 GB, free: 96.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=324): time 2.35e-05/1.423, allocations: 1.156 kB / 0.6457 GB, free: 96.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=376): time 0.1032/1.526, allocations: 24.41 MB / 0.6696 GB, free: 88.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/1.526, allocations: 88.83 kB / 0.6696 GB, free: 88.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/1.531, allocations: 2.961 MB / 0.6725 GB, free: 86.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001915/1.532, allocations: 88.73 kB / 0.6726 GB, free: 86.85 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/1.534, allocations: 2.157 MB / 0.6747 GB, free: 84.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002249/1.536, allocations: 1.297 MB / 0.676 GB, free: 83.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/1.538, allocations: 0.9783 MB / 0.6769 GB, free: 83.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/1.538, allocations: 301.1 kB / 0.6772 GB, free: 83.01 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00433/1.542, allocations: 2.959 MB / 0.6801 GB, free: 81.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005042/1.547, allocations: 4.481 MB / 0.6845 GB, free: 76.56 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/1.558, allocations: 7.807 MB / 0.6921 GB, free: 68.35 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.469e-05/1.558, allocations: 12.84 kB / 0.6921 GB, free: 68.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.0533/1.611, allocations: 13.83 MB / 0.7056 GB, free: 54.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.519e-05/1.611, allocations: 28 kB / 0.7057 GB, free: 54.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.36e-05/1.611, allocations: 50.69 kB / 0.7057 GB, free: 54.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008441/1.62, allocations: 3.481 MB / 0.7091 GB, free: 51.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00573/1.626, allocations: 1.266 MB / 0.7103 GB, free: 50.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02957/1.655, allocations: 18.48 MB / 0.7284 GB, free: 31.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006399/1.662, allocations: 370 kB / 0.7288 GB, free: 31.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.663, allocations: 279.8 kB / 0.729 GB, free: 30.78 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 218 * 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 (599): * Single equations (assignments): 596 * 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 {(9,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.003787/1.667, allocations: 1.448 MB / 0.7304 GB, free: 29.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.668, allocations: 347.6 kB / 0.7308 GB, free: 28.98 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03386/1.702, allocations: 9.67 MB / 0.7402 GB, free: 19.39 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.907e-05/1.702, allocations: 36 kB / 0.7402 GB, free: 19.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/1.702, allocations: 8 kB / 0.7402 GB, free: 19.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001561/1.703, allocations: 22.8 kB / 0.7403 GB, free: 19.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04545/1.748, allocations: 15.44 MB / 0.7553 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-05/1.748, allocations: 7.906 kB / 0.7554 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004681/1.753, allocations: 0.8464 MB / 0.7562 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005704/1.759, allocations: 2.122 MB / 0.7583 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001241/1.76, allocations: 143.7 kB / 0.7584 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02362/1.783, allocations: 12.68 MB / 0.7708 GB, free: 3.762 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.784, allocations: 4.656 kB / 0.7708 GB, free: 3.758 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3425/2.126, allocations: 12.97 MB / 0.7834 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003537/2.13, allocations: 0.9364 MB / 0.7844 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001146/2.131, allocations: 91.06 kB / 0.7844 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/2.134, allocations: 247.6 kB / 0.7847 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/2.135, allocations: 460.3 kB / 0.7851 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003484/2.136, allocations: 146.2 kB / 0.7853 GB, free: 133.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002655/2.138, allocations: 1.99 MB / 0.7872 GB, free: 133.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.313e-06/2.138, allocations: 0 / 0.7872 GB, free: 133.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009091/2.147, allocations: 2.049 MB / 0.7892 GB, free: 133 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 19 (solution.temperature,OxyRHm[1].logn,OxyRHm[2].logn,OxyRHm[3].logn,OxyRHm[4].logn,DeoxyRHm[1].logn,DeoxyRHm[2].logn,DeoxyRHm[3].logn,DeoxyRHm[4].logn,OxyTHm[1].logn,OxyTHm[2].logn,OxyTHm[3].logn,OxyTHm[4].logn,DeoxyTHm[1].logn,DeoxyTHm[2].logn,DeoxyTHm[3].logn,DeoxyTHm[4].logn,oxygen_unbound.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 (408): * Single equations (assignments): 405 * 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%), (9,4,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.003532/2.151, allocations: 1.285 MB / 0.7905 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03713/2.188, allocations: 14.98 MB / 0.8051 GB, free: 130.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/2.188, allocations: 1.781 kB / 0.8051 GB, free: 130.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01139/2.2, allocations: 4.084 MB / 0.8091 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006114/2.206, allocations: 0.7786 MB / 0.8098 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/2.229, allocations: 12.94 MB / 0.8225 GB, free: 122.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004014/2.233, allocations: 3.309 MB / 0.8257 GB, free: 121.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005523/2.239, allocations: 1.614 MB / 0.8273 GB, free: 120.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/2.24, allocations: 470 kB / 0.8277 GB, free: 120 MB / 478.1 MB Notification: Performance of SimCode: time 1.463e-06/2.24, allocations: 2.688 kB / 0.8277 GB, free: 120 MB / 478.1 MB Notification: Performance of Templates: time 0.1324/2.373, allocations: 91.27 MB / 0.9169 GB, free: 33.63 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.makefile Failed to read output from testmodel.py, exit status != 0: 2.375094108749181 2.391223694 1.566883675 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