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.001243/0.001243, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.00124/0.00124, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08285/0.08285, allocations: 15.3 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.12 kB / 425.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1109, allocations: 53.61 MB / 479.5 MB, free: 5.75 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.494/0.605, allocations: 41.7 MB / 0.509 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.08197/0.687, allocations: 72.73 MB / 0.58 GB, free: 5.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005304/0.6923, allocations: 59.12 kB / 0.5801 GB, free: 5.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005984/0.6983, allocations: 1.624 MB / 0.5816 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02123/0.7196, allocations: 5.918 MB / 0.5874 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03203/0.7517, allocations: 10.22 MB / 0.5974 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02655/0.7782, allocations: 26.7 MB / 0.6235 GB, free: 15.42 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02814/0.8064, allocations: 21.97 MB / 0.6449 GB, free: 9.332 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02868/0.8351, allocations: 17.48 MB / 0.662 GB, free: 7.824 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03121/0.8664, allocations: 16.2 MB / 0.6778 GB, free: 7.582 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 0.01253/0.8789, allocations: 3.094 MB / 0.6808 GB, free: 4.488 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04321/0.9222, allocations: 10.71 MB / 0.6913 GB, free: 9.77 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.01571/0.9379, allocations: 6.981 MB / 0.6981 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0304/0.9683, allocations: 12.16 MB / 0.71 GB, free: 6.562 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3875/1.356, allocations: 42.21 MB / 0.7512 GB, free: 59.92 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/1.356, allocations: 0 / 0.7512 GB, free: 59.92 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.286e-06/1.356, allocations: 0 / 0.7512 GB, free: 59.92 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.001252/1.357, allocations: 0 / 0.7512 GB, free: 59.92 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.1015/1.459, allocations: 24.74 MB / 0.7754 GB, free: 52.95 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/1.459, allocations: 7.906 kB / 0.7754 GB, free: 52.95 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02853/1.487, allocations: 3.891 MB / 0.7792 GB, free: 51.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03228/1.52, allocations: 12.01 MB / 0.7909 GB, free: 48.04 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002395/1.522, allocations: 2.135 MB / 0.793 GB, free: 46.87 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01289/1.535, allocations: 1.534 MB / 0.7945 GB, free: 46.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0951/1.63, allocations: 34.8 MB / 0.8285 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008128/1.631, allocations: 10.84 kB / 0.8285 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0116/1.643, allocations: 0.5859 MB / 0.8291 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002658/1.643, allocations: 364 kB / 0.8294 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1034/1.746, allocations: 46.84 MB / 0.8752 GB, free: 15.38 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.6103/2.357, allocations: 127.8 MB / 1 GB, free: 215.5 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8708/3.227, allocations: 276.1 MB / 1.27 GB, free: 220.9 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03983/3.267, allocations: 19.81 MB / 1.289 GB, free: 217.8 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1748/3.442, allocations: 87.5 MB / 1.374 GB, free: 157.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/3.442, allocations: 138.3 kB / 1.374 GB, free: 157.7 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02363/3.466, allocations: 4.51 MB / 1.379 GB, free: 153.3 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=996): time 6.464e-05/3.466, allocations: 0 / 1.379 GB, free: 153.3 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1130): time 0.7236/4.19, allocations: 136.6 MB / 1.512 GB, free: 17.49 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/4.19, allocations: 168.2 kB / 1.512 GB, free: 17.31 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01818/4.208, allocations: 10.16 MB / 1.522 GB, free: 7.211 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.004917/4.213, allocations: 213.7 kB / 1.523 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.004263/4.217, allocations: 6.9 MB / 1.529 GB, free: 80 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.3177/4.535, allocations: 3.909 MB / 1.533 GB, free: 242.4 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01934/4.554, allocations: 3.261 MB / 1.536 GB, free: 242.3 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.478e-05/4.554, allocations: 308.7 kB / 1.537 GB, free: 242 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02518/4.58, allocations: 11.83 MB / 1.548 GB, free: 240.1 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02733/4.607, allocations: 16.56 MB / 1.564 GB, free: 229.9 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04943/4.656, allocations: 29.75 MB / 1.593 GB, free: 213.7 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003004/4.657, allocations: 40.75 kB / 1.593 GB, free: 213.7 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4549/5.112, allocations: 81.47 MB / 1.673 GB, free: 145 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003285/5.112, allocations: 68.22 kB / 1.673 GB, free: 144.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003963/5.113, allocations: 156 kB / 1.673 GB, free: 144.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0593/5.172, allocations: 22.36 MB / 1.695 GB, free: 122.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01817/5.19, allocations: 3.729 MB / 1.699 GB, free: 118.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5285/5.719, allocations: 93.94 MB / 1.79 GB, free: 210.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.021/5.74, allocations: 0.8405 MB / 1.791 GB, free: 210.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006957/5.747, allocations: 0.9332 MB / 1.792 GB, free: 210.2 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.02041/5.767, allocations: 5.38 MB / 1.797 GB, free: 209 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00782/5.775, allocations: 1.055 MB / 1.798 GB, free: 209 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2846/6.06, allocations: 48.61 MB / 1.846 GB, free: 197.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001743/6.06, allocations: 122.4 kB / 1.846 GB, free: 197.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000221/6.06, allocations: 14.91 kB / 1.846 GB, free: 197.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000572/6.061, allocations: 66.36 kB / 1.846 GB, free: 197.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3317/6.392, allocations: 73.09 MB / 1.917 GB, free: 138.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001301/6.392, allocations: 7.984 kB / 1.917 GB, free: 138.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01515/6.408, allocations: 2.417 MB / 1.92 GB, free: 136.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03166/6.439, allocations: 11.91 MB / 1.931 GB, free: 124.5 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005027/6.444, allocations: 475.5 kB / 1.932 GB, free: 124 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.112/6.556, allocations: 46.94 MB / 1.978 GB, free: 76.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/6.556, allocations: 4 kB / 1.978 GB, free: 76.77 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.626/7.182, allocations: 62.76 MB / 2.039 GB, free: 204.7 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0108/7.193, allocations: 3.298 MB / 2.042 GB, free: 203.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006489/7.2, allocations: 290.8 kB / 2.043 GB, free: 203.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01498/7.215, allocations: 0.5337 MB / 2.043 GB, free: 203.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008043/7.223, allocations: 1.507 MB / 2.045 GB, free: 203.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004006/7.227, allocations: 472 kB / 2.045 GB, free: 203.1 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.01366/7.241, allocations: 6.969 MB / 2.052 GB, free: 200.7 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.51e-07/7.241, allocations: 0 / 2.052 GB, free: 200.7 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.03334/7.274, allocations: 6.68 MB / 2.058 GB, free: 200.2 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.01161/7.286, allocations: 3.536 MB / 2.062 GB, free: 199.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.07107/7.357, allocations: 27.81 MB / 2.089 GB, free: 189.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/7.357, allocations: 0 / 2.089 GB, free: 189.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.04301/7.4, allocations: 14.89 MB / 2.103 GB, free: 183.4 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02333/7.423, allocations: 2.504 MB / 2.106 GB, free: 182.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09858/7.522, allocations: 37.53 MB / 2.143 GB, free: 150.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01999/7.542, allocations: 9.637 MB / 2.152 GB, free: 143.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01129/7.553, allocations: 1.555 MB / 2.153 GB, free: 142.1 MB / 0.6544 GB Notification: Performance of SimCode: time 1.492e-06/7.553, allocations: 0 / 2.153 GB, free: 142.1 MB / 0.6544 GB Notification: Performance of Templates: time 1.294/8.847, allocations: 0.5112 GB / 2.665 GB, free: 92.61 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)