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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001276/0.001276, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001021/0.001021, allocations: 177.3 kB / 15.94 MB, free: 228 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.347/1.347, allocations: 223.2 MB / 239.9 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2321/0.2321, allocations: 15.26 MB / 306.2 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.0003056/0.0003055, allocations: 8 kB / 371.4 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3219, allocations: 54.62 MB / 426 MB, free: 39.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.01605/0.338, allocations: 20.14 MB / 446.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.05883/0.3969, allocations: 61.35 MB / 0.4956 GB, free: 0.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004619/0.4015, allocations: 103.9 kB / 0.4957 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00537/0.4069, allocations: 1.497 MB / 0.4971 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02112/0.4281, allocations: 5.737 MB / 0.5027 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02958/0.4577, allocations: 8.806 MB / 0.5113 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0237/0.4814, allocations: 15.92 MB / 0.5269 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02198/0.5034, allocations: 16.07 MB / 0.5426 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02776/0.5313, allocations: 14.54 MB / 0.5568 GB, free: 5.684 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02764/0.559, allocations: 13.08 MB / 0.5696 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009052/0.5681, allocations: 1.426 MB / 0.5709 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5773/1.145, allocations: 9.96 MB / 0.5807 GB, free: 36.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01298/1.158, allocations: 4.854 MB / 0.5854 GB, free: 36.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0119/1.17, allocations: 3.227 MB / 0.5886 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05839/1.229, allocations: 30.25 MB / 0.6181 GB, free: 31.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.229, allocations: 0 / 0.6181 GB, free: 31.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.218e-06/1.229, allocations: 0.75 kB / 0.6181 GB, free: 31.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001683/1.231, allocations: 2.188 kB / 0.6181 GB, free: 31.36 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.08497/1.316, allocations: 20.27 MB / 0.6379 GB, free: 21.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.316, allocations: 9.031 kB / 0.6379 GB, free: 21.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03046/1.346, allocations: 3.893 MB / 0.6417 GB, free: 18.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03719/1.383, allocations: 10.89 MB / 0.6523 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002084/1.385, allocations: 2.134 MB / 0.6544 GB, free: 8.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01453/1.4, allocations: 1.527 MB / 0.6559 GB, free: 7.742 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09827/1.498, allocations: 34.57 MB / 0.6897 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007639/1.499, allocations: 10.28 kB / 0.6897 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01079/1.51, allocations: 0.5898 MB / 0.6903 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003917/1.51, allocations: 360 kB / 0.6906 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09905/1.609, allocations: 46.76 MB / 0.7363 GB, free: 8.977 MB / 0.4982 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.6604/2.27, allocations: 127 MB / 0.8603 GB, free: 83.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8371/3.107, allocations: 276 MB / 1.13 GB, free: 125.4 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1682/3.275, allocations: 86.96 MB / 1.215 GB, free: 40.34 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/3.275, allocations: 134.4 kB / 1.215 GB, free: 40.2 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02324/3.299, allocations: 4.436 MB / 1.219 GB, free: 35.86 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=996): time 4.711e-05/3.299, allocations: 0 / 1.219 GB, free: 35.86 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1130): time 0.9623/4.261, allocations: 136.8 MB / 1.353 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/4.261, allocations: 164.2 kB / 1.353 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/4.275, allocations: 10.08 MB / 1.363 GB, free: 159.4 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.004531/4.28, allocations: 213.7 kB / 1.363 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004579/4.284, allocations: 6.89 MB / 1.37 GB, free: 152.3 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.007481/4.292, allocations: 3.917 MB / 1.374 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003928/4.296, allocations: 296 kB / 1.374 GB, free: 148.1 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.000824/4.297, allocations: 0.9023 MB / 1.375 GB, free: 147.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01912/4.316, allocations: 11.77 MB / 1.386 GB, free: 135.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02525/4.341, allocations: 16.44 MB / 1.402 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02387/4.365, allocations: 14.1 MB / 1.416 GB, free: 102.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001461/4.365, allocations: 43.94 kB / 1.416 GB, free: 102.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.7403/5.106, allocations: 81.43 MB / 1.496 GB, free: 190.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/5.106, allocations: 69.31 kB / 1.496 GB, free: 190.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002726/5.106, allocations: 148.2 kB / 1.496 GB, free: 190.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05963/5.166, allocations: 22.55 MB / 1.518 GB, free: 179.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01799/5.184, allocations: 3.733 MB / 1.521 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1981/5.382, allocations: 93.73 MB / 1.613 GB, free: 86.12 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0261/5.408, allocations: 1.147 MB / 1.614 GB, free: 85.01 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007448/5.416, allocations: 0.9367 MB / 1.615 GB, free: 84.07 MB / 0.5763 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.02314/5.439, allocations: 5.37 MB / 1.62 GB, free: 78.93 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007877/5.447, allocations: 1.06 MB / 1.621 GB, free: 78.43 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5777/6.024, allocations: 48.55 MB / 1.669 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002095/6.025, allocations: 120.6 kB / 1.669 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001385/6.025, allocations: 23.66 kB / 1.669 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004307/6.025, allocations: 62.56 kB / 1.669 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3191/6.344, allocations: 72.86 MB / 1.74 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001335/6.344, allocations: 4.438 kB / 1.74 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01471/6.359, allocations: 2.43 MB / 1.742 GB, free: 150.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03096/6.39, allocations: 11.76 MB / 1.754 GB, free: 139.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005331/6.396, allocations: 483.5 kB / 1.754 GB, free: 138.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09664/6.492, allocations: 44.76 MB / 1.798 GB, free: 93.55 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/6.492, allocations: 7.938 kB / 1.798 GB, free: 93.54 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6245/7.117, allocations: 63.34 MB / 1.86 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01318/7.13, allocations: 3.278 MB / 1.863 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007419/7.138, allocations: 302.7 kB / 1.863 GB, free: 180.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01553/7.153, allocations: 0.7957 MB / 1.864 GB, free: 180.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007692/7.161, allocations: 1.499 MB / 1.866 GB, free: 180.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004763/7.166, allocations: 475.7 kB / 1.866 GB, free: 180.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01524/7.181, allocations: 6.889 MB / 1.873 GB, free: 178.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.6e-07/7.181, allocations: 0 / 1.873 GB, free: 178.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0381/7.219, allocations: 6.585 MB / 1.879 GB, free: 177.4 MB / 0.5763 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.01092/7.23, allocations: 3.449 MB / 1.883 GB, free: 176.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.07063/7.301, allocations: 27.65 MB / 1.91 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/7.301, allocations: 0 / 1.91 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.04247/7.343, allocations: 14.85 MB / 1.924 GB, free: 155.3 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01793/7.361, allocations: 2.176 MB / 1.926 GB, free: 153.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09643/7.458, allocations: 43.21 MB / 1.969 GB, free: 113.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01909/7.477, allocations: 10.22 MB / 1.978 GB, free: 103.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.02091/7.498, allocations: 5.289 MB / 1.984 GB, free: 97.82 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007539/7.505, allocations: 1.428 MB / 1.985 GB, free: 96.39 MB / 0.5763 GB Notification: Performance of SimCode: time 1.883e-06/7.505, allocations: 0 / 1.985 GB, free: 96.39 MB / 0.5763 GB Notification: Performance of Templates: time 0.8938/8.399, allocations: 300.5 MB / 2.279 GB, free: 178.8 MB / 0.5763 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: