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.001059/0.001059, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001149/0.00115, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1856/0.1856, allocations: 15.27 MB / 306.4 MB, free: 15.74 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003204, allocations: 8 kB / 371.5 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2604, allocations: 54.62 MB / 426.1 MB, free: 40.38 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.01492/0.2754, allocations: 22.73 MB / 448.9 MB, free: 27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0608/0.3362, allocations: 66.89 MB / 0.5037 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004174/0.3404, allocations: 96.75 kB / 0.5037 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004545/0.345, allocations: 1.444 MB / 0.5052 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01667/0.3617, allocations: 5.226 MB / 0.5103 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02417/0.3859, allocations: 8.011 MB / 0.5181 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02371/0.4096, allocations: 24.31 MB / 0.5418 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0215/0.4312, allocations: 16.48 MB / 0.5579 GB, free: 4.719 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02331/0.4545, allocations: 14.12 MB / 0.5717 GB, free: 6.555 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4311/0.8857, allocations: 13.56 MB / 0.5849 GB, free: 19.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008998/0.8948, allocations: 1.426 MB / 0.5863 GB, free: 19.15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03923/0.934, allocations: 8.749 MB / 0.5949 GB, free: 19.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01298/0.947, allocations: 4.884 MB / 0.5997 GB, free: 19.15 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01223/0.9593, allocations: 3.229 MB / 0.6028 GB, free: 19.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04583/1.005, allocations: 32.69 MB / 0.6347 GB, free: 12.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/1.005, allocations: 0 / 0.6347 GB, free: 12.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.946e-06/1.005, allocations: 0 / 0.6347 GB, free: 12.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001063/1.006, allocations: 0.7812 kB / 0.6347 GB, free: 12.14 MB / 446.1 MB 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.05868/1.065, allocations: 20.32 MB / 0.6546 GB, free: 15.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/1.065, allocations: 8.031 kB / 0.6546 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02394/1.089, allocations: 3.892 MB / 0.6584 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02649/1.116, allocations: 11.22 MB / 0.6693 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002142/1.118, allocations: 2.135 MB / 0.6714 GB, free: 1.809 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009319/1.127, allocations: 1.531 MB / 0.6729 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08453/1.212, allocations: 34.68 MB / 0.7068 GB, free: 8.832 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007094/1.212, allocations: 11.38 kB / 0.7068 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009495/1.222, allocations: 0.5927 MB / 0.7074 GB, free: 8.699 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000344/1.222, allocations: 360 kB / 0.7077 GB, free: 8.348 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09174/1.314, allocations: 46.76 MB / 0.7534 GB, free: 15.28 MB / 0.5294 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.4731/1.787, allocations: 127.7 MB / 0.8781 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7793/2.566, allocations: 275.9 MB / 1.148 GB, free: 49.51 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02994/2.596, allocations: 19.75 MB / 1.167 GB, free: 29.73 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3658/2.962, allocations: 87.13 MB / 1.252 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.228e-05/2.962, allocations: 131 kB / 1.252 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01981/2.982, allocations: 4.447 MB / 1.256 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=996): time 4.487e-05/2.982, allocations: 0 / 1.256 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1130): time 0.8673/3.85, allocations: 136.8 MB / 1.39 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/3.85, allocations: 166.7 kB / 1.39 GB, free: 157 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01554/3.865, allocations: 10.08 MB / 1.4 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00403/3.869, allocations: 212.9 kB / 1.4 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004719/3.874, allocations: 6.902 MB / 1.407 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.006774/3.881, allocations: 3.904 MB / 1.411 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002933/3.884, allocations: 295.5 kB / 1.411 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.001007/3.885, allocations: 0.9071 MB / 1.412 GB, free: 147 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02204/3.907, allocations: 11.77 MB / 1.423 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02716/3.934, allocations: 16.5 MB / 1.44 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02581/3.96, allocations: 14.09 MB / 1.453 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002001/3.96, allocations: 45.59 kB / 1.453 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.3938/4.354, allocations: 81.44 MB / 1.533 GB, free: 62.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001749/4.354, allocations: 68 kB / 1.533 GB, free: 62.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002464/4.354, allocations: 148 kB / 1.533 GB, free: 62.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05257/4.407, allocations: 22.54 MB / 1.555 GB, free: 39.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01567/4.423, allocations: 3.732 MB / 1.559 GB, free: 36.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4063/4.829, allocations: 88.28 MB / 1.645 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01994/4.849, allocations: 1.16 MB / 1.646 GB, free: 120.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006696/4.856, allocations: 0.9331 MB / 1.647 GB, free: 120.4 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(33,82.4%) 10} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01784/4.874, allocations: 5.378 MB / 1.652 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006407/4.88, allocations: 1.052 MB / 1.653 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2444/5.124, allocations: 48.54 MB / 1.701 GB, free: 75.98 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001217/5.125, allocations: 120 kB / 1.701 GB, free: 75.87 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001542/5.125, allocations: 20 kB / 1.701 GB, free: 75.85 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004308/5.125, allocations: 59.77 kB / 1.701 GB, free: 75.79 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5146/5.64, allocations: 72.92 MB / 1.772 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001302/5.64, allocations: 3.094 kB / 1.772 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01281/5.653, allocations: 2.427 MB / 1.774 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02925/5.682, allocations: 11.77 MB / 1.786 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005677/5.688, allocations: 478.2 kB / 1.786 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1203/5.808, allocations: 42.18 MB / 1.828 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/5.808, allocations: 11.09 kB / 1.828 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2524/6.061, allocations: 62.59 MB / 1.889 GB, free: 77.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009762/6.07, allocations: 3.301 MB / 1.892 GB, free: 74.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005336/6.076, allocations: 291.9 kB / 1.892 GB, free: 74.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01195/6.088, allocations: 0.7992 MB / 1.893 GB, free: 73.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005942/6.094, allocations: 1.503 MB / 1.895 GB, free: 72.32 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002906/6.097, allocations: 471.6 kB / 1.895 GB, free: 71.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01177/6.108, allocations: 6.899 MB / 1.902 GB, free: 65.01 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.41e-07/6.108, allocations: 0 / 1.902 GB, free: 65.01 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.03249/6.141, allocations: 6.68 MB / 1.908 GB, free: 58.68 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(33,82.4%) 10} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01187/6.153, allocations: 3.521 MB / 1.912 GB, free: 55.81 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.06433/6.217, allocations: 27.65 MB / 1.939 GB, free: 28.13 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/6.217, allocations: 1.969 kB / 1.939 GB, free: 28.13 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2778/6.495, allocations: 14.84 MB / 1.953 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01879/6.514, allocations: 2.382 MB / 1.955 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0876/6.602, allocations: 43.25 MB / 1.998 GB, free: 130 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01879/6.62, allocations: 9.939 MB / 2.007 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.02014/6.641, allocations: 5.298 MB / 2.013 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008028/6.649, allocations: 1.415 MB / 2.014 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.51e-07/6.649, allocations: 0 / 2.014 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.6224/7.271, allocations: 302.1 MB / 2.309 GB, free: 25.73 MB / 0.5294 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)