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.001213/0.001213, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 187.8 kB / 16.92 MB, free: 6.75 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.475/1.475, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1817/0.1817, allocations: 15.27 MB / 307.4 MB, free: 15.81 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.000322, allocations: 12.23 kB / 372.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.274, allocations: 54.62 MB / 427.4 MB, free: 40.33 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.04166/0.3157, allocations: 43.58 MB / 471 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08205/0.3977, allocations: 71.8 MB / 0.53 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00582/0.4036, allocations: 99.19 kB / 0.5301 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005101/0.4088, allocations: 1.461 MB / 0.5316 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02142/0.4302, allocations: 5.166 MB / 0.5366 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03384/0.4641, allocations: 9.009 MB / 0.5454 GB, free: 2.664 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02937/0.4935, allocations: 25.66 MB / 0.5705 GB, free: 8.918 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3404/0.8339, allocations: 17.22 MB / 0.5873 GB, free: 11.98 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02802/0.862, allocations: 15.55 MB / 0.6025 GB, free: 11.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03092/0.893, allocations: 14.1 MB / 0.6162 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01186/0.9049, allocations: 1.427 MB / 0.6176 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03923/0.9441, allocations: 9.02 MB / 0.6264 GB, free: 8.965 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01299/0.9571, allocations: 4.983 MB / 0.6313 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0243/0.9815, allocations: 10.04 MB / 0.6411 GB, free: 3.613 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04123/1.023, allocations: 32.5 MB / 0.6729 GB, free: 1.234 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/1.023, allocations: 3.984 kB / 0.6729 GB, free: 1.23 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.615e-06/1.023, allocations: 4 kB / 0.6729 GB, free: 1.227 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001088/1.024, allocations: 0 / 0.6729 GB, free: 1.227 MB / 462.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.06736/1.091, allocations: 20.18 MB / 0.6926 GB, free: 13.19 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/1.091, allocations: 8.031 kB / 0.6926 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02436/1.116, allocations: 3.9 MB / 0.6964 GB, free: 9.266 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03178/1.148, allocations: 11.46 MB / 0.7076 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003405/1.151, allocations: 2.134 MB / 0.7097 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01149/1.163, allocations: 1.535 MB / 0.7112 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09783/1.26, allocations: 34.81 MB / 0.7451 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006945/1.261, allocations: 10.81 kB / 0.7452 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009733/1.271, allocations: 0.5859 MB / 0.7457 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003779/1.271, allocations: 362 kB / 0.7461 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6068/1.878, allocations: 46.85 MB / 0.7918 GB, free: 189.9 MB / 0.5607 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.3049/2.183, allocations: 127.8 MB / 0.9166 GB, free: 110.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 1.07/3.253, allocations: 276.1 MB / 1.186 GB, free: 74.56 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03272/3.286, allocations: 19.82 MB / 1.206 GB, free: 54.94 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4109/3.697, allocations: 87.15 MB / 1.291 GB, free: 174.2 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/3.697, allocations: 138.1 kB / 1.291 GB, free: 174.1 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02495/3.722, allocations: 4.435 MB / 1.295 GB, free: 172.9 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=996): time 6.238e-05/3.722, allocations: 2.719 kB / 1.295 GB, free: 172.9 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1130): time 0.7377/4.46, allocations: 136.9 MB / 1.429 GB, free: 72.62 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.226e-05/4.46, allocations: 176.2 kB / 1.429 GB, free: 72.43 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01591/4.476, allocations: 10.15 MB / 1.439 GB, free: 62.34 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.005027/4.481, allocations: 213.7 kB / 1.439 GB, free: 62.12 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.005084/4.486, allocations: 6.898 MB / 1.446 GB, free: 55.21 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.2543/4.74, allocations: 3.902 MB / 1.45 GB, free: 180.7 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005791/4.746, allocations: 1.162 MB / 1.451 GB, free: 180.6 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 4.823e-05/4.746, allocations: 301.1 kB / 1.451 GB, free: 180.3 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02096/4.767, allocations: 11.83 MB / 1.463 GB, free: 180.3 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02406/4.791, allocations: 16.56 MB / 1.479 GB, free: 170.3 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.051/4.842, allocations: 29.75 MB / 1.508 GB, free: 154.1 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002551/4.843, allocations: 43.19 kB / 1.508 GB, free: 154.1 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.5466/5.389, allocations: 81.55 MB / 1.588 GB, free: 98.42 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001746/5.389, allocations: 68 kB / 1.588 GB, free: 98.35 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000244/5.39, allocations: 148 kB / 1.588 GB, free: 98.21 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06135/5.451, allocations: 22.52 MB / 1.61 GB, free: 75.88 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01778/5.469, allocations: 3.735 MB / 1.613 GB, free: 72.14 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5005/5.969, allocations: 88.3 MB / 1.7 GB, free: 148 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02066/5.99, allocations: 1.154 MB / 1.701 GB, free: 147.8 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005956/5.996, allocations: 0.9347 MB / 1.702 GB, free: 147.7 MB / 0.5608 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.0162/6.012, allocations: 5.374 MB / 1.707 GB, free: 145.7 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005586/6.018, allocations: 1.054 MB / 1.708 GB, free: 145.7 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2819/6.3, allocations: 48.58 MB / 1.755 GB, free: 116.4 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001529/6.3, allocations: 120 kB / 1.756 GB, free: 116.3 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001187/6.3, allocations: 26.69 kB / 1.756 GB, free: 116.2 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003927/6.301, allocations: 59.77 kB / 1.756 GB, free: 116.2 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3128/6.613, allocations: 72.98 MB / 1.827 GB, free: 43.44 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001098/6.614, allocations: 4 kB / 1.827 GB, free: 43.44 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01417/6.628, allocations: 2.422 MB / 1.829 GB, free: 41.01 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2696/6.897, allocations: 11.76 MB / 1.841 GB, free: 160.3 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00474/6.902, allocations: 476.5 kB / 1.841 GB, free: 160.3 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1083/7.011, allocations: 42.2 MB / 1.882 GB, free: 149.9 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/7.011, allocations: 5.812 kB / 1.882 GB, free: 149.9 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2886/7.299, allocations: 62.7 MB / 1.944 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01035/7.31, allocations: 3.307 MB / 1.947 GB, free: 119.5 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006058/7.316, allocations: 299.7 kB / 1.947 GB, free: 119.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01493/7.331, allocations: 0.785 MB / 1.948 GB, free: 118.5 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007719/7.338, allocations: 1.507 MB / 1.949 GB, free: 117 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0034/7.342, allocations: 475.6 kB / 1.95 GB, free: 116.6 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.01251/7.354, allocations: 6.967 MB / 1.957 GB, free: 109.6 MB / 0.5608 GB Notification: Performance of sort global known variables: time 1.182e-06/7.355, allocations: 0 / 1.957 GB, free: 109.6 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.03387/7.388, allocations: 6.667 MB / 1.963 GB, free: 103.5 MB / 0.5608 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.009925/7.398, allocations: 3.528 MB / 1.967 GB, free: 100.8 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.0663/7.465, allocations: 27.74 MB / 1.994 GB, free: 73.05 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/7.465, allocations: 8.125 kB / 1.994 GB, free: 73.04 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.04003/7.505, allocations: 14.87 MB / 2.008 GB, free: 58.15 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02475/7.53, allocations: 2.342 MB / 2.011 GB, free: 55.88 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3288/7.858, allocations: 44.42 MB / 2.054 GB, free: 155.9 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01817/7.877, allocations: 9.639 MB / 2.063 GB, free: 154.9 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007925/7.885, allocations: 1.544 MB / 2.065 GB, free: 154.9 MB / 0.5608 GB Notification: Performance of SimCode: time 9.82e-07/7.885, allocations: 0 / 2.065 GB, free: 154.9 MB / 0.5608 GB Notification: Performance of Templates: time 1.226/9.111, allocations: 0.5088 GB / 2.574 GB, free: 64.47 MB / 0.5608 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)