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.001144/0.001144, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.00117/0.00117, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0843/0.0843, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 61.67 kB / 371.7 MB, free: 50.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1094, allocations: 53.62 MB / 425.4 MB, free: 13.29 MB / 302.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.04712/0.1566, allocations: 41.49 MB / 466.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3084/0.465, allocations: 72.71 MB / 0.5269 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004506/0.4696, allocations: 60.5 kB / 0.527 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005441/0.475, allocations: 1.623 MB / 0.5285 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0241/0.4992, allocations: 5.924 MB / 0.5343 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03029/0.5295, allocations: 10.22 MB / 0.5443 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02572/0.5552, allocations: 26.7 MB / 0.5704 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02639/0.5817, allocations: 21.98 MB / 0.5919 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02757/0.6093, allocations: 17.46 MB / 0.6089 GB, free: 3.695 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03033/0.6397, allocations: 16.2 MB / 0.6247 GB, free: 3.934 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0109/0.6506, allocations: 3.098 MB / 0.6278 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05294/0.7036, allocations: 10.7 MB / 0.6382 GB, free: 6.215 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0196/0.7233, allocations: 6.98 MB / 0.645 GB, free: 15.42 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03317/0.7565, allocations: 12.15 MB / 0.6569 GB, free: 3.426 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5006/1.257, allocations: 42.01 MB / 0.6979 GB, free: 83.8 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/1.257, allocations: 0.7188 kB / 0.6979 GB, free: 83.8 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.464e-06/1.257, allocations: 0 / 0.6979 GB, free: 83.8 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.001191/1.258, allocations: 0.875 kB / 0.6979 GB, free: 83.8 MB / 0.4982 GB 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.088/1.346, allocations: 24.77 MB / 0.7221 GB, free: 77.62 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.347, allocations: 10.62 kB / 0.7221 GB, free: 77.62 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0269/1.373, allocations: 3.893 MB / 0.7259 GB, free: 76.69 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0332/1.407, allocations: 12.01 MB / 0.7377 GB, free: 75.1 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002068/1.409, allocations: 2.138 MB / 0.7397 GB, free: 73.97 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01084/1.42, allocations: 1.531 MB / 0.7412 GB, free: 73.93 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08242/1.502, allocations: 34.81 MB / 0.7752 GB, free: 51.46 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005924/1.503, allocations: 10.56 kB / 0.7752 GB, free: 51.46 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009748/1.512, allocations: 0.5859 MB / 0.7758 GB, free: 50.87 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002329/1.513, allocations: 360.8 kB / 0.7762 GB, free: 50.52 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08029/1.593, allocations: 46.85 MB / 0.8219 GB, free: 3.676 MB / 0.4982 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.4879/2.081, allocations: 127.8 MB / 0.9467 GB, free: 186.4 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8065/2.888, allocations: 276 MB / 1.216 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03708/2.925, allocations: 19.81 MB / 1.236 GB, free: 158.4 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.15/3.075, allocations: 87.5 MB / 1.321 GB, free: 98.32 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.702e-05/3.075, allocations: 138.3 kB / 1.321 GB, free: 98.17 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01759/3.092, allocations: 4.515 MB / 1.326 GB, free: 93.76 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=996): time 4.234e-05/3.092, allocations: 0 / 1.326 GB, free: 93.76 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1130): time 0.8784/3.971, allocations: 136.5 MB / 1.459 GB, free: 202.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/3.971, allocations: 166.8 kB / 1.459 GB, free: 202.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01416/3.985, allocations: 10.16 MB / 1.469 GB, free: 197.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.004899/3.99, allocations: 211.2 kB / 1.469 GB, free: 197 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004754/3.995, allocations: 6.894 MB / 1.476 GB, free: 192.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.00706/4.002, allocations: 3.917 MB / 1.48 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0074/4.009, allocations: 3.259 MB / 1.483 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.314e-05/4.009, allocations: 308.5 kB / 1.483 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01637/4.026, allocations: 11.83 MB / 1.495 GB, free: 180.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01963/4.045, allocations: 16.55 MB / 1.511 GB, free: 167.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04516/4.091, allocations: 29.76 MB / 1.54 GB, free: 135.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001453/4.091, allocations: 40 kB / 1.54 GB, free: 135.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.6484/4.739, allocations: 81.46 MB / 1.62 GB, free: 190.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/4.739, allocations: 65.69 kB / 1.62 GB, free: 190.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001862/4.74, allocations: 154.3 kB / 1.62 GB, free: 190.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.058/4.798, allocations: 22.37 MB / 1.642 GB, free: 188.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01717/4.815, allocations: 3.728 MB / 1.645 GB, free: 188.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1725/4.987, allocations: 93.94 MB / 1.737 GB, free: 119.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01856/5.006, allocations: 0.8426 MB / 1.738 GB, free: 119 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005119/5.011, allocations: 0.9328 MB / 1.739 GB, free: 118.1 MB / 0.5763 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.01352/5.025, allocations: 5.372 MB / 1.744 GB, free: 113 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005615/5.03, allocations: 1.056 MB / 1.745 GB, free: 112.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2573/5.288, allocations: 48.63 MB / 1.793 GB, free: 64.05 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001352/5.288, allocations: 116 kB / 1.793 GB, free: 63.93 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-05/5.288, allocations: 20 kB / 1.793 GB, free: 63.91 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003548/5.288, allocations: 62.17 kB / 1.793 GB, free: 63.86 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6182/5.906, allocations: 73.08 MB / 1.864 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001064/5.907, allocations: 3.969 kB / 1.864 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01339/5.92, allocations: 2.421 MB / 1.867 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03012/5.95, allocations: 11.9 MB / 1.878 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005271/5.955, allocations: 482.7 kB / 1.879 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0967/6.052, allocations: 46.95 MB / 1.924 GB, free: 128.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/6.052, allocations: 4 kB / 1.924 GB, free: 128.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.265/6.317, allocations: 62.76 MB / 1.986 GB, free: 65.75 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01215/6.329, allocations: 3.295 MB / 1.989 GB, free: 63.03 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005374/6.335, allocations: 295.9 kB / 1.989 GB, free: 62.74 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01209/6.347, allocations: 0.5228 MB / 1.99 GB, free: 62.22 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006327/6.353, allocations: 1.511 MB / 1.991 GB, free: 60.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003155/6.356, allocations: 471.6 kB / 1.992 GB, free: 60.24 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.246/6.602, allocations: 6.972 MB / 1.998 GB, free: 192.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.81e-07/6.602, allocations: 0 / 1.998 GB, free: 192.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.03203/6.634, allocations: 6.679 MB / 2.005 GB, free: 192.4 MB / 0.5763 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.01036/6.645, allocations: 3.54 MB / 2.008 GB, free: 191.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.07003/6.715, allocations: 27.83 MB / 2.036 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/6.715, allocations: 0 / 2.036 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.04001/6.755, allocations: 14.89 MB / 2.05 GB, free: 179.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01787/6.773, allocations: 2.505 MB / 2.053 GB, free: 178.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08339/6.856, allocations: 37.86 MB / 2.09 GB, free: 149.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01482/6.871, allocations: 9.939 MB / 2.099 GB, free: 141.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01424/6.885, allocations: 5.217 MB / 2.104 GB, free: 138.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005467/6.891, allocations: 1.446 MB / 2.106 GB, free: 137.4 MB / 0.5763 GB Notification: Performance of SimCode: time 9.52e-07/6.891, allocations: 0 / 2.106 GB, free: 137.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.8555/7.746, allocations: 316.4 MB / 2.415 GB, free: 161.9 MB / 0.5763 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.makefile (rm -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.sim & ./Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe 2>&1)