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.001302/0.001302, allocations: 110.7 kB / 16.38 MB, free: 6.48 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.00126/0.00126, allocations: 192.8 kB / 17.32 MB, free: 5.801 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.218/1.218, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.06941/0.06941, allocations: 15.3 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.91 kB / 425.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09271/0.09394, allocations: 53.62 MB / 479.5 MB, free: 5.785 MB / 350.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.3828/0.4768, allocations: 41.5 MB / 0.5087 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06709/0.5439, allocations: 72.72 MB / 0.5798 GB, free: 5.297 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003874/0.5478, allocations: 59.31 kB / 0.5798 GB, free: 5.277 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004707/0.5525, allocations: 1.623 MB / 0.5814 GB, free: 3.98 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01665/0.5692, allocations: 5.931 MB / 0.5872 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02463/0.5939, allocations: 10.2 MB / 0.5972 GB, free: 7.273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02164/0.6155, allocations: 26.7 MB / 0.6232 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02317/0.6388, allocations: 21.97 MB / 0.6447 GB, free: 9.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02246/0.6613, allocations: 17.46 MB / 0.6617 GB, free: 8.094 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02473/0.686, allocations: 16.21 MB / 0.6776 GB, free: 7.844 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 0.009485/0.6956, allocations: 3.094 MB / 0.6806 GB, free: 4.75 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03301/0.7286, allocations: 10.71 MB / 0.6911 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.01206/0.7407, allocations: 6.973 MB / 0.6979 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.02236/0.7631, allocations: 12.16 MB / 0.7097 GB, free: 6.832 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2946/1.058, allocations: 42.01 MB / 0.7508 GB, free: 60.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/1.058, allocations: 3.781 kB / 0.7508 GB, free: 60.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/1.058, allocations: 0 / 0.7508 GB, free: 60.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0009105/1.059, allocations: 0 / 0.7508 GB, free: 60.24 MB / 0.545 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.08383/1.143, allocations: 24.77 MB / 0.775 GB, free: 53.35 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/1.143, allocations: 7.938 kB / 0.775 GB, free: 53.35 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02583/1.168, allocations: 3.899 MB / 0.7788 GB, free: 51.87 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02722/1.196, allocations: 12.02 MB / 0.7905 GB, free: 48.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001981/1.198, allocations: 2.133 MB / 0.7926 GB, free: 47.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01095/1.209, allocations: 1.53 MB / 0.7941 GB, free: 47.22 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07955/1.288, allocations: 34.8 MB / 0.8281 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006159/1.289, allocations: 7.469 kB / 0.8281 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01115/1.3, allocations: 0.5924 MB / 0.8287 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003008/1.3, allocations: 360 kB / 0.829 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09046/1.391, allocations: 46.85 MB / 0.8748 GB, free: 15.91 MB / 0.5919 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.5092/1.9, allocations: 127.8 MB / 0.9996 GB, free: 216.2 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7945/2.695, allocations: 276 MB / 1.269 GB, free: 222.2 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03384/2.729, allocations: 19.81 MB / 1.288 GB, free: 218.9 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1501/2.879, allocations: 87.5 MB / 1.374 GB, free: 158.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/2.879, allocations: 141 kB / 1.374 GB, free: 158.7 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02107/2.9, allocations: 4.509 MB / 1.378 GB, free: 154.3 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=996): time 5.245e-05/2.9, allocations: 0 / 1.378 GB, free: 154.3 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1130): time 0.6995/3.6, allocations: 136.6 MB / 1.512 GB, free: 18.48 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/3.6, allocations: 172.2 kB / 1.512 GB, free: 18.3 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01767/3.618, allocations: 10.16 MB / 1.522 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.004532/3.622, allocations: 209.7 kB / 1.522 GB, free: 7.988 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.2637/3.886, allocations: 6.89 MB / 1.529 GB, free: 243.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.008462/3.894, allocations: 3.915 MB / 1.533 GB, free: 242.5 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01824/3.913, allocations: 3.262 MB / 1.536 GB, free: 242.3 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.897e-05/3.913, allocations: 305.5 kB / 1.536 GB, free: 242 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02492/3.938, allocations: 11.83 MB / 1.548 GB, free: 239.8 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02614/3.964, allocations: 16.56 MB / 1.564 GB, free: 229.7 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04906/4.013, allocations: 29.74 MB / 1.593 GB, free: 213.4 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002815/4.013, allocations: 43.12 kB / 1.593 GB, free: 213.4 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4451/4.458, allocations: 81.47 MB / 1.673 GB, free: 144.8 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003529/4.459, allocations: 72 kB / 1.673 GB, free: 144.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004008/4.459, allocations: 150.7 kB / 1.673 GB, free: 144.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05733/4.516, allocations: 22.37 MB / 1.695 GB, free: 122.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01705/4.534, allocations: 3.729 MB / 1.698 GB, free: 118.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4248/4.958, allocations: 93.94 MB / 1.79 GB, free: 210.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01722/4.976, allocations: 0.8386 MB / 1.791 GB, free: 210.7 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004699/4.98, allocations: 0.9326 MB / 1.792 GB, free: 210.7 MB / 0.6544 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.01479/4.995, allocations: 5.378 MB / 1.797 GB, free: 208.9 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005771/5.001, allocations: 1.054 MB / 1.798 GB, free: 208.9 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2651/5.266, allocations: 48.63 MB / 1.845 GB, free: 197.1 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001219/5.266, allocations: 119.6 kB / 1.846 GB, free: 197.1 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.169e-05/5.266, allocations: 18.59 kB / 1.846 GB, free: 197.1 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003461/5.267, allocations: 61.78 kB / 1.846 GB, free: 197.1 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2948/5.562, allocations: 73.08 MB / 1.917 GB, free: 137.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/5.562, allocations: 4 kB / 1.917 GB, free: 137.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01339/5.575, allocations: 2.423 MB / 1.919 GB, free: 135.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02981/5.605, allocations: 11.9 MB / 1.931 GB, free: 123.7 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003638/5.609, allocations: 483.5 kB / 1.931 GB, free: 123.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09987/5.709, allocations: 46.94 MB / 1.977 GB, free: 75.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/5.709, allocations: 7.938 kB / 1.977 GB, free: 75.95 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5768/6.285, allocations: 62.76 MB / 2.039 GB, free: 205.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0101/6.296, allocations: 3.299 MB / 2.042 GB, free: 204.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005287/6.301, allocations: 300.9 kB / 2.042 GB, free: 204.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01298/6.314, allocations: 0.5214 MB / 2.043 GB, free: 204 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006141/6.32, allocations: 1.514 MB / 2.044 GB, free: 203.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002469/6.323, allocations: 472.3 kB / 2.045 GB, free: 203.7 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.01104/6.334, allocations: 6.965 MB / 2.051 GB, free: 201.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.41e-07/6.334, allocations: 2.594 kB / 2.051 GB, free: 201.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.03105/6.365, allocations: 6.685 MB / 2.058 GB, free: 200.8 MB / 0.6544 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.01116/6.376, allocations: 3.531 MB / 2.061 GB, free: 200.1 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.07569/6.452, allocations: 27.81 MB / 2.089 GB, free: 189.9 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/6.452, allocations: 0 / 2.089 GB, free: 189.9 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.04047/6.492, allocations: 14.89 MB / 2.103 GB, free: 184.1 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02141/6.514, allocations: 2.493 MB / 2.105 GB, free: 183.1 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09512/6.609, allocations: 37.53 MB / 2.142 GB, free: 150.4 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01497/6.624, allocations: 9.64 MB / 2.152 GB, free: 143.3 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007521/6.631, allocations: 1.571 MB / 2.153 GB, free: 142 MB / 0.6544 GB Notification: Performance of SimCode: time 1.022e-06/6.631, allocations: 0 / 2.153 GB, free: 142 MB / 0.6544 GB Notification: Performance of Templates: time 1.119/7.75, allocations: 0.5097 GB / 2.663 GB, free: 93.42 MB / 0.6544 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 -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe 2>&1)