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.001317/0.001317, allocations: 100.1 kB / 15.88 MB, free: 12 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.001434/0.001435, allocations: 195.6 kB / 16.79 MB, free: 6.809 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.366/1.366, allocations: 222.9 MB / 240.5 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2413/0.2413, allocations: 15.31 MB / 305.9 MB, free: 15.36 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 59.91 kB / 370.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 53.61 MB / 423.9 MB, free: 14.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.2405/0.3491, allocations: 44.34 MB / 468.3 MB, free: 36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.07356/0.4227, allocations: 72.58 MB / 0.5282 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007069/0.4298, allocations: 103.2 kB / 0.5283 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00647/0.4363, allocations: 1.458 MB / 0.5297 GB, free: 8.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02214/0.4585, allocations: 5.171 MB / 0.5347 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03281/0.4913, allocations: 9.006 MB / 0.5435 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02878/0.5201, allocations: 25.66 MB / 0.5686 GB, free: 2.039 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02359/0.5438, allocations: 17.94 MB / 0.5861 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5576/1.101, allocations: 16.16 MB / 0.6019 GB, free: 17.57 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02589/1.127, allocations: 14.89 MB / 0.6164 GB, free: 17.17 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01011/1.138, allocations: 1.686 MB / 0.6181 GB, free: 17.17 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04662/1.184, allocations: 9.284 MB / 0.6272 GB, free: 17.17 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01639/1.201, allocations: 5.388 MB / 0.6324 GB, free: 16.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.04151/1.242, allocations: 10.53 MB / 0.6427 GB, free: 14.19 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05386/1.296, allocations: 33.2 MB / 0.6751 GB, free: 6.941 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.296, allocations: 0 / 0.6751 GB, free: 6.941 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.497e-06/1.296, allocations: 3.344 kB / 0.6751 GB, free: 6.941 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001298/1.297, allocations: 3.938 kB / 0.6751 GB, free: 6.938 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.1128/1.41, allocations: 24.76 MB / 0.6993 GB, free: 9.352 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.41, allocations: 12.25 kB / 0.6993 GB, free: 9.352 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03232/1.443, allocations: 3.892 MB / 0.7031 GB, free: 5.586 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03582/1.478, allocations: 11.77 MB / 0.7146 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002657/1.481, allocations: 2.132 MB / 0.7167 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01315/1.494, allocations: 1.537 MB / 0.7182 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1123/1.607, allocations: 34.81 MB / 0.7522 GB, free: 3.324 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008437/1.608, allocations: 10.56 kB / 0.7522 GB, free: 3.32 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01274/1.62, allocations: 0.5859 MB / 0.7528 GB, free: 2.734 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004371/1.621, allocations: 360 kB / 0.7531 GB, free: 2.383 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1078/1.729, allocations: 46.84 MB / 0.7988 GB, free: 3.539 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.5839/2.313, allocations: 128 MB / 0.9239 GB, free: 119.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8911/3.204, allocations: 276 MB / 1.193 GB, free: 91.56 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03594/3.24, allocations: 19.82 MB / 1.213 GB, free: 75.43 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.409/3.649, allocations: 87.61 MB / 1.298 GB, free: 176.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/3.649, allocations: 139.1 kB / 1.298 GB, free: 176.5 MB / 0.5607 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0231/3.672, allocations: 4.429 MB / 1.303 GB, free: 176.4 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=996): time 5.716e-05/3.672, allocations: 0 / 1.303 GB, free: 176.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1130): time 0.7367/4.409, allocations: 136.5 MB / 1.436 GB, free: 98.7 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/4.409, allocations: 172.2 kB / 1.436 GB, free: 98.51 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0199/4.429, allocations: 10.16 MB / 1.446 GB, free: 88.42 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.004951/4.434, allocations: 211.8 kB / 1.446 GB, free: 88.21 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005295/4.439, allocations: 6.891 MB / 1.453 GB, free: 81.3 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.007759/4.447, allocations: 3.924 MB / 1.457 GB, free: 77.41 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01621/4.463, allocations: 3.26 MB / 1.46 GB, free: 74.13 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.11e-05/4.463, allocations: 301.1 kB / 1.46 GB, free: 73.84 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02124/4.485, allocations: 11.83 MB / 1.472 GB, free: 62 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2682/4.753, allocations: 16.56 MB / 1.488 GB, free: 169.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05018/4.803, allocations: 29.74 MB / 1.517 GB, free: 156.4 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002509/4.803, allocations: 43.31 kB / 1.517 GB, free: 156.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4341/5.237, allocations: 81.47 MB / 1.597 GB, free: 119.3 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003607/5.238, allocations: 68 kB / 1.597 GB, free: 119.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004104/5.238, allocations: 152.5 kB / 1.597 GB, free: 119.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05899/5.297, allocations: 22.37 MB / 1.619 GB, free: 96.91 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01787/5.315, allocations: 3.728 MB / 1.623 GB, free: 93.18 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4922/5.807, allocations: 88.26 MB / 1.709 GB, free: 149 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02149/5.829, allocations: 1.149 MB / 1.71 GB, free: 148.7 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006828/5.836, allocations: 0.9325 MB / 1.711 GB, free: 148.6 MB / 0.5607 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.02179/5.858, allocations: 5.382 MB / 1.716 GB, free: 146.6 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008074/5.866, allocations: 1.056 MB / 1.717 GB, free: 146.6 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2784/6.144, allocations: 48.64 MB / 1.765 GB, free: 129 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001397/6.144, allocations: 125.2 kB / 1.765 GB, free: 129 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002088/6.145, allocations: 22.22 kB / 1.765 GB, free: 129 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004845/6.145, allocations: 62.39 kB / 1.765 GB, free: 129 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3226/6.468, allocations: 73.09 MB / 1.836 GB, free: 64.66 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001315/6.468, allocations: 4 kB / 1.836 GB, free: 64.66 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01381/6.482, allocations: 2.42 MB / 1.839 GB, free: 62.36 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03113/6.513, allocations: 11.91 MB / 1.85 GB, free: 50.64 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004445/6.517, allocations: 471.5 kB / 1.851 GB, free: 50.18 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3548/6.872, allocations: 42.18 MB / 1.892 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/6.872, allocations: 4.703 kB / 1.892 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2947/7.167, allocations: 62.76 MB / 1.953 GB, free: 136.2 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01243/7.179, allocations: 3.294 MB / 1.956 GB, free: 134.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008271/7.188, allocations: 302.1 kB / 1.957 GB, free: 134.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.016/7.204, allocations: 0.7939 MB / 1.957 GB, free: 134.1 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00786/7.211, allocations: 1.495 MB / 1.959 GB, free: 133.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003935/7.215, allocations: 476.1 kB / 1.959 GB, free: 133 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.01316/7.229, allocations: 6.969 MB / 1.966 GB, free: 129.4 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.9e-07/7.229, allocations: 0 / 1.966 GB, free: 129.4 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.03485/7.264, allocations: 6.671 MB / 1.973 GB, free: 123.8 MB / 0.5607 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.01134/7.275, allocations: 3.548 MB / 1.976 GB, free: 121.2 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.0705/7.345, allocations: 27.73 MB / 2.003 GB, free: 93.75 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/7.345, allocations: 4 kB / 2.003 GB, free: 93.75 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.04197/7.387, allocations: 14.88 MB / 2.018 GB, free: 78.84 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02345/7.411, allocations: 2.334 MB / 2.02 GB, free: 76.69 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.354/7.765, allocations: 44.19 MB / 2.063 GB, free: 150.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02309/7.788, allocations: 9.638 MB / 2.073 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01158/7.8, allocations: 1.547 MB / 2.074 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.272e-06/7.8, allocations: 0 / 2.074 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of Templates: time 1.159/8.959, allocations: 0.5111 GB / 2.585 GB, free: 84.66 MB / 0.5607 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)