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.008572/0.008572, allocations: 101 kB / 15.73 MB, free: 6.469 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.001401/0.001401, allocations: 193.1 kB / 16.67 MB, free: 6.379 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 / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.307/0.307, allocations: 15.31 MB / 305.8 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3801, allocations: 53.61 MB / 478.8 MB, free: 25.79 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.05212/0.4322, allocations: 41.7 MB / 0.5083 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1071/0.5394, allocations: 72.73 MB / 0.5794 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007674/0.5471, allocations: 59.69 kB / 0.5794 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007737/0.5549, allocations: 1.621 MB / 0.581 GB, free: 14.19 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02689/0.5818, allocations: 5.931 MB / 0.5868 GB, free: 8.219 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03531/0.6171, allocations: 10.21 MB / 0.5968 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.4501/1.067, allocations: 26.7 MB / 0.6228 GB, free: 18.81 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0376/1.105, allocations: 21.97 MB / 0.6443 GB, free: 17.39 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03951/1.145, allocations: 17.48 MB / 0.6614 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03755/1.182, allocations: 16.21 MB / 0.6772 GB, free: 3.152 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01523/1.197, allocations: 3.094 MB / 0.6802 GB, free: 60 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0555/1.253, allocations: 10.69 MB / 0.6907 GB, free: 5.957 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01961/1.273, allocations: 6.988 MB / 0.6975 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03879/1.311, allocations: 12.16 MB / 0.7094 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.09278/1.404, allocations: 42.22 MB / 0.7506 GB, free: 11.91 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.602e-05/1.404, allocations: 4 kB / 0.7506 GB, free: 11.91 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.685e-06/1.404, allocations: 0 / 0.7506 GB, free: 11.91 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.001432/1.406, allocations: 0 / 0.7506 GB, free: 11.91 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.1073/1.513, allocations: 24.72 MB / 0.7747 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/1.513, allocations: 12.03 kB / 0.7747 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0268/1.54, allocations: 3.897 MB / 0.7786 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03047/1.571, allocations: 12.02 MB / 0.7903 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002713/1.573, allocations: 2.135 MB / 0.7924 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01034/1.584, allocations: 1.531 MB / 0.7939 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09146/1.675, allocations: 34.79 MB / 0.8278 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006629/1.676, allocations: 11.31 kB / 0.8279 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008325/1.684, allocations: 0.5898 MB / 0.8284 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003339/1.685, allocations: 368 kB / 0.8288 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7135/2.398, allocations: 46.84 MB / 0.8745 GB, free: 212.9 MB / 0.6232 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.2902/2.688, allocations: 127.8 MB / 0.9993 GB, free: 100.2 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 1.211/3.9, allocations: 276 MB / 1.269 GB, free: 79.86 MB / 0.6233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03439/3.934, allocations: 19.81 MB / 1.288 GB, free: 60 MB / 0.6233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5455/4.48, allocations: 87.49 MB / 1.374 GB, free: 193.4 MB / 0.6233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/4.48, allocations: 140.5 kB / 1.374 GB, free: 193.3 MB / 0.6233 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02487/4.505, allocations: 4.509 MB / 1.378 GB, free: 192.4 MB / 0.6233 GB Notification: Performance of pre-optimization done (n=996): time 0.0001514/4.505, allocations: 0 / 1.378 GB, free: 192.4 MB / 0.6233 GB Notification: Performance of matching and sorting (n=1130): time 0.7372/5.242, allocations: 136.6 MB / 1.512 GB, free: 94.23 MB / 0.6233 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/5.242, allocations: 168.2 kB / 1.512 GB, free: 94.05 MB / 0.6233 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/5.257, allocations: 10.16 MB / 1.522 GB, free: 83.96 MB / 0.6233 GB Notification: Performance of collectPreVariables (initialization): time 0.004836/5.262, allocations: 209.7 kB / 1.522 GB, free: 83.75 MB / 0.6233 GB Notification: Performance of collectInitialEqns (initialization): time 0.003936/5.265, allocations: 6.89 MB / 1.529 GB, free: 76.84 MB / 0.6233 GB Notification: Performance of collectInitialBindings (initialization): time 0.007368/5.273, allocations: 3.918 MB / 1.532 GB, free: 72.95 MB / 0.6233 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01436/5.287, allocations: 3.264 MB / 1.536 GB, free: 69.67 MB / 0.6233 GB Notification: Performance of setup shared object (initialization): time 5.271e-05/5.287, allocations: 305.1 kB / 1.536 GB, free: 69.37 MB / 0.6233 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0228/5.31, allocations: 11.82 MB / 1.547 GB, free: 57.54 MB / 0.6233 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02471/5.335, allocations: 16.56 MB / 1.564 GB, free: 38.9 MB / 0.6233 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4724/5.807, allocations: 29.74 MB / 1.593 GB, free: 178.1 MB / 0.6233 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002281/5.808, allocations: 50.91 kB / 1.593 GB, free: 178.1 MB / 0.6233 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4774/6.285, allocations: 81.46 MB / 1.672 GB, free: 142.2 MB / 0.6233 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/6.285, allocations: 68 kB / 1.672 GB, free: 142.2 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002589/6.285, allocations: 153.8 kB / 1.673 GB, free: 142 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05877/6.344, allocations: 22.36 MB / 1.694 GB, free: 119.8 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01775/6.362, allocations: 3.728 MB / 1.698 GB, free: 116.1 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1778/6.54, allocations: 93.94 MB / 1.79 GB, free: 21.81 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4123/6.952, allocations: 0.8361 MB / 1.791 GB, free: 177.5 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008447/6.961, allocations: 0.9344 MB / 1.791 GB, free: 177.5 MB / 0.6233 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.02432/6.985, allocations: 5.378 MB / 1.797 GB, free: 177.3 MB / 0.6233 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009907/6.995, allocations: 1.054 MB / 1.798 GB, free: 177.3 MB / 0.6233 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2984/7.293, allocations: 48.62 MB / 1.845 GB, free: 168.4 MB / 0.6233 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002183/7.294, allocations: 120.1 kB / 1.845 GB, free: 168.4 MB / 0.6233 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001233/7.294, allocations: 19.78 kB / 1.845 GB, free: 168.4 MB / 0.6233 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004499/7.294, allocations: 65.77 kB / 1.845 GB, free: 168.4 MB / 0.6233 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3141/7.608, allocations: 73.09 MB / 1.917 GB, free: 121.9 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001219/7.609, allocations: 6.312 kB / 1.917 GB, free: 121.9 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01461/7.623, allocations: 2.415 MB / 1.919 GB, free: 119.5 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03192/7.655, allocations: 11.9 MB / 1.931 GB, free: 108 MB / 0.6233 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0042/7.659, allocations: 483.5 kB / 1.931 GB, free: 107.5 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09997/7.759, allocations: 46.95 MB / 1.977 GB, free: 60.27 MB / 0.6233 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/7.759, allocations: 4 kB / 1.977 GB, free: 60.27 MB / 0.6233 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7332/8.493, allocations: 62.76 MB / 2.038 GB, free: 162.7 MB / 0.6233 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01518/8.508, allocations: 3.292 MB / 2.042 GB, free: 161.8 MB / 0.6233 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008382/8.516, allocations: 300.6 kB / 2.042 GB, free: 161.6 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01627/8.533, allocations: 0.522 MB / 2.042 GB, free: 161.5 MB / 0.6233 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008325/8.541, allocations: 1.513 MB / 2.044 GB, free: 161.2 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004097/8.545, allocations: 479.2 kB / 2.044 GB, free: 161.2 MB / 0.6233 GB Notification: Performance of sorting global known variables: time 0.01523/8.56, allocations: 6.97 MB / 2.051 GB, free: 158.8 MB / 0.6233 GB Notification: Performance of sort global known variables: time 1.102e-06/8.56, allocations: 0 / 2.051 GB, free: 158.8 MB / 0.6233 GB Notification: Performance of remove unused functions: time 0.03611/8.597, allocations: 6.68 MB / 2.058 GB, free: 158.2 MB / 0.6233 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.01202/8.609, allocations: 3.524 MB / 2.061 GB, free: 157.6 MB / 0.6233 GB Notification: Performance of simCode: created initialization part: time 0.0701/8.679, allocations: 27.81 MB / 2.088 GB, free: 147.3 MB / 0.6233 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/8.679, allocations: 6.469 kB / 2.088 GB, free: 147.3 MB / 0.6233 GB Notification: Performance of simCode: created simulation system equations: time 0.04467/8.723, allocations: 14.9 MB / 2.103 GB, free: 141.5 MB / 0.6233 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01964/8.743, allocations: 2.499 MB / 2.105 GB, free: 140.7 MB / 0.6233 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09015/8.833, allocations: 37.85 MB / 2.142 GB, free: 115.3 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01495/8.848, allocations: 9.939 MB / 2.152 GB, free: 108.1 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01775/8.866, allocations: 5.216 MB / 2.157 GB, free: 104.8 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007631/8.874, allocations: 1.444 MB / 2.158 GB, free: 103.6 MB / 0.6233 GB Notification: Performance of SimCode: time 1.162e-06/8.874, allocations: 2.656 kB / 2.158 GB, free: 103.6 MB / 0.6233 GB Notification: Performance of Templates: time 1.127/10, allocations: 326.3 MB / 2.477 GB, free: 189.7 MB / 0.6389 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)