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.006306/0.006306, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001261/0.001261, allocations: 202 kB / 16.68 MB, free: 5.965 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2414/0.2414, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 55.91 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3371, allocations: 53.62 MB / 478.8 MB, free: 25.87 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.04792/0.3851, allocations: 41.81 MB / 0.5084 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.08015/0.4652, allocations: 72.71 MB / 0.5795 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007202/0.4725, allocations: 59.69 kB / 0.5795 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005853/0.4784, allocations: 1.617 MB / 0.5811 GB, free: 14.14 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02051/0.4989, allocations: 5.927 MB / 0.5869 GB, free: 8.168 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02935/0.5283, allocations: 10.22 MB / 0.5969 GB, free: 13.89 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.3708/0.8991, allocations: 26.7 MB / 0.6229 GB, free: 19.03 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03482/0.934, allocations: 21.97 MB / 0.6444 GB, free: 17.61 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0351/0.9691, allocations: 17.47 MB / 0.6614 GB, free: 14.83 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0394/1.009, allocations: 16.2 MB / 0.6773 GB, free: 3.148 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01544/1.024, allocations: 3.096 MB / 0.6803 GB, free: 56 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05104/1.075, allocations: 10.7 MB / 0.6907 GB, free: 5.949 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01744/1.093, allocations: 6.988 MB / 0.6976 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03629/1.129, allocations: 12.15 MB / 0.7094 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.08848/1.218, allocations: 42.33 MB / 0.7508 GB, free: 11.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.033e-05/1.218, allocations: 0 / 0.7508 GB, free: 11.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.365e-06/1.218, allocations: 4 kB / 0.7508 GB, free: 11.78 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.001446/1.219, allocations: 0 / 0.7508 GB, free: 11.78 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.1094/1.328, allocations: 25.22 MB / 0.7754 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/1.329, allocations: 12.03 kB / 0.7754 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/1.357, allocations: 3.984 MB / 0.7793 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03203/1.389, allocations: 12.06 MB / 0.7911 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002377/1.392, allocations: 2.131 MB / 0.7932 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01534/1.407, allocations: 1.537 MB / 0.7947 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.105/1.512, allocations: 34.8 MB / 0.8287 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006479/1.513, allocations: 11.41 kB / 0.8287 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01123/1.524, allocations: 0.5898 MB / 0.8292 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003367/1.525, allocations: 360 kB / 0.8296 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7031/2.228, allocations: 46.84 MB / 0.8753 GB, free: 212.5 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.3058/2.534, allocations: 128 MB / 1 GB, free: 99.17 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 1.177/3.71, allocations: 276 MB / 1.27 GB, free: 78.37 MB / 0.6233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0332/3.743, allocations: 19.81 MB / 1.289 GB, free: 58.52 MB / 0.6233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4633/4.207, allocations: 87.56 MB / 1.375 GB, free: 192.6 MB / 0.6233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/4.207, allocations: 134.2 kB / 1.375 GB, free: 192.5 MB / 0.6233 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02185/4.229, allocations: 4.541 MB / 1.379 GB, free: 191.6 MB / 0.6233 GB Notification: Performance of pre-optimization done (n=996): time 8.489e-05/4.229, allocations: 0 / 1.379 GB, free: 191.6 MB / 0.6233 GB Notification: Performance of matching and sorting (n=1130): time 0.7068/4.936, allocations: 136.8 MB / 1.513 GB, free: 92.55 MB / 0.6233 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/4.936, allocations: 164.2 kB / 1.513 GB, free: 92.38 MB / 0.6233 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01281/4.949, allocations: 10.17 MB / 1.523 GB, free: 82.37 MB / 0.6233 GB Notification: Performance of collectPreVariables (initialization): time 0.004727/4.953, allocations: 209.7 kB / 1.523 GB, free: 82.16 MB / 0.6233 GB Notification: Performance of collectInitialEqns (initialization): time 0.004466/4.958, allocations: 7.098 MB / 1.53 GB, free: 75.89 MB / 0.6233 GB Notification: Performance of collectInitialBindings (initialization): time 0.007181/4.965, allocations: 4.11 MB / 1.534 GB, free: 72.33 MB / 0.6233 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01236/4.977, allocations: 3.273 MB / 1.537 GB, free: 69.05 MB / 0.6233 GB Notification: Performance of setup shared object (initialization): time 6.946e-05/4.978, allocations: 309.1 kB / 1.538 GB, free: 68.74 MB / 0.6233 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01861/4.996, allocations: 11.83 MB / 1.549 GB, free: 56.91 MB / 0.6233 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3978/5.394, allocations: 16.55 MB / 1.565 GB, free: 189.6 MB / 0.6233 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06173/5.456, allocations: 29.75 MB / 1.594 GB, free: 176.4 MB / 0.6233 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002012/5.456, allocations: 42.62 kB / 1.594 GB, free: 176.4 MB / 0.6233 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4362/5.892, allocations: 81.53 MB / 1.674 GB, free: 139.5 MB / 0.6233 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/5.892, allocations: 70.19 kB / 1.674 GB, free: 139.5 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/5.893, allocations: 148 kB / 1.674 GB, free: 139.3 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05876/5.951, allocations: 22.37 MB / 1.696 GB, free: 117.1 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01743/5.969, allocations: 3.724 MB / 1.7 GB, free: 113.4 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6/6.569, allocations: 93.96 MB / 1.791 GB, free: 176 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0262/6.595, allocations: 0.8394 MB / 1.792 GB, free: 176 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009768/6.605, allocations: 0.9329 MB / 1.793 GB, free: 176 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.02793/6.633, allocations: 5.384 MB / 1.798 GB, free: 175.9 MB / 0.6233 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01268/6.646, allocations: 1.111 MB / 1.8 GB, free: 175.9 MB / 0.6233 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3238/6.97, allocations: 48.62 MB / 1.847 GB, free: 166.6 MB / 0.6233 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003197/6.97, allocations: 120.2 kB / 1.847 GB, free: 166.6 MB / 0.6233 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002052/6.97, allocations: 19.75 kB / 1.847 GB, free: 166.6 MB / 0.6233 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000628/6.971, allocations: 63.8 kB / 1.847 GB, free: 166.6 MB / 0.6233 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3181/7.289, allocations: 73.09 MB / 1.919 GB, free: 119.8 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001668/7.289, allocations: 4 kB / 1.919 GB, free: 119.8 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01544/7.305, allocations: 2.414 MB / 1.921 GB, free: 117.4 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03987/7.344, allocations: 11.92 MB / 1.933 GB, free: 105.9 MB / 0.6233 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006733/7.351, allocations: 471.5 kB / 1.933 GB, free: 105.4 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1415/7.493, allocations: 46.95 MB / 1.979 GB, free: 58.18 MB / 0.6233 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/7.493, allocations: 4 kB / 1.979 GB, free: 58.18 MB / 0.6233 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6478/8.141, allocations: 62.82 MB / 2.04 GB, free: 163.6 MB / 0.6233 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01607/8.157, allocations: 3.354 MB / 2.044 GB, free: 162.7 MB / 0.6233 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005828/8.163, allocations: 300.1 kB / 2.044 GB, free: 162.5 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01522/8.178, allocations: 0.5257 MB / 2.044 GB, free: 162.3 MB / 0.6233 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006931/8.185, allocations: 1.514 MB / 2.046 GB, free: 162.1 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003079/8.188, allocations: 469.6 kB / 2.046 GB, free: 162 MB / 0.6233 GB Notification: Performance of sorting global known variables: time 0.01262/8.201, allocations: 6.968 MB / 2.053 GB, free: 159.7 MB / 0.6233 GB Notification: Performance of sort global known variables: time 6.61e-07/8.201, allocations: 1.594 kB / 2.053 GB, free: 159.7 MB / 0.6233 GB Notification: Performance of remove unused functions: time 0.03497/8.236, allocations: 6.722 MB / 2.06 GB, free: 159.1 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.01147/8.247, allocations: 3.58 MB / 2.063 GB, free: 158.7 MB / 0.6233 GB Notification: Performance of simCode: created initialization part: time 0.08219/8.329, allocations: 27.83 MB / 2.09 GB, free: 148.4 MB / 0.6233 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/8.329, allocations: 0 / 2.09 GB, free: 148.4 MB / 0.6233 GB Notification: Performance of simCode: created simulation system equations: time 0.04392/8.373, allocations: 14.91 MB / 2.105 GB, free: 142.6 MB / 0.6233 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0259/8.399, allocations: 2.494 MB / 2.107 GB, free: 141.7 MB / 0.6233 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0981/8.498, allocations: 38.3 MB / 2.145 GB, free: 115 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01674/8.514, allocations: 9.94 MB / 2.154 GB, free: 107.8 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01793/8.532, allocations: 5.223 MB / 2.16 GB, free: 103.6 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006996/8.539, allocations: 1.433 MB / 2.161 GB, free: 102.2 MB / 0.6233 GB Notification: Performance of SimCode: time 3.256e-06/8.539, allocations: 0 / 2.161 GB, free: 102.2 MB / 0.6233 GB Notification: Performance of Templates: time 0.7361/9.275, allocations: 321.2 MB / 2.475 GB, free: 14.79 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)