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.001357/0.001357, allocations: 102.4 kB / 16.27 MB, free: 6.344 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.00129/0.00129, allocations: 188.7 kB / 17.2 MB, free: 5.949 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.418/1.418, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08887/0.08887, allocations: 15.31 MB / 306.4 MB, free: 15.51 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 65.33 kB / 371 MB, free: 51.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1083, allocations: 53.62 MB / 424.6 MB, free: 14.25 MB / 302.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.04975/0.1581, allocations: 42.29 MB / 466.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3254/0.4835, allocations: 72.71 MB / 0.5269 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005357/0.4889, allocations: 56.5 kB / 0.527 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006538/0.4955, allocations: 1.623 MB / 0.5286 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02297/0.5185, allocations: 5.929 MB / 0.5344 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02918/0.5477, allocations: 10.22 MB / 0.5443 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02591/0.5737, allocations: 26.59 MB / 0.5703 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03173/0.6054, allocations: 21.98 MB / 0.5918 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03325/0.6387, allocations: 17.43 MB / 0.6088 GB, free: 3.824 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03292/0.6717, allocations: 16.2 MB / 0.6246 GB, free: 4.066 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01232/0.684, allocations: 3.094 MB / 0.6276 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04638/0.7305, allocations: 10.7 MB / 0.6381 GB, free: 6.344 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01432/0.7448, allocations: 6.982 MB / 0.6449 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03171/0.7766, allocations: 12.16 MB / 0.6568 GB, free: 3.547 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.556/1.333, allocations: 41.84 MB / 0.6977 GB, free: 84.08 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/1.333, allocations: 0 / 0.6977 GB, free: 84.08 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.484e-06/1.333, allocations: 0 / 0.6977 GB, free: 84.08 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.001248/1.334, allocations: 1.438 kB / 0.6977 GB, free: 84.08 MB / 0.4982 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.09958/1.433, allocations: 24.77 MB / 0.7218 GB, free: 77.89 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/1.434, allocations: 7.969 kB / 0.7219 GB, free: 77.89 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0294/1.463, allocations: 3.899 MB / 0.7257 GB, free: 76.96 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03045/1.493, allocations: 11.76 MB / 0.7371 GB, free: 75.37 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002094/1.496, allocations: 2.136 MB / 0.7392 GB, free: 74.25 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01242/1.508, allocations: 1.535 MB / 0.7407 GB, free: 74.21 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08848/1.597, allocations: 34.8 MB / 0.7747 GB, free: 51.59 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000664/1.597, allocations: 10.28 kB / 0.7747 GB, free: 51.59 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01066/1.608, allocations: 0.5859 MB / 0.7753 GB, free: 51 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002138/1.608, allocations: 360 kB / 0.7756 GB, free: 50.65 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08363/1.692, allocations: 46.84 MB / 0.8214 GB, free: 3.816 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.5594/2.251, allocations: 128.3 MB / 0.9467 GB, free: 186.9 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8784/3.13, allocations: 276 MB / 1.216 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03186/3.162, allocations: 19.81 MB / 1.236 GB, free: 158.4 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1468/3.308, allocations: 87.59 MB / 1.321 GB, free: 98 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.466e-05/3.309, allocations: 133 kB / 1.321 GB, free: 97.86 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02039/3.329, allocations: 4.51 MB / 1.326 GB, free: 93.45 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=996): time 6.195e-05/3.329, allocations: 0 / 1.326 GB, free: 93.45 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1130): time 0.9185/4.248, allocations: 136.6 MB / 1.459 GB, free: 202 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/4.248, allocations: 172.4 kB / 1.459 GB, free: 201.9 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01384/4.262, allocations: 10.16 MB / 1.469 GB, free: 196.9 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.004115/4.266, allocations: 211.4 kB / 1.469 GB, free: 196.8 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.00461/4.27, allocations: 6.899 MB / 1.476 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.006888/4.277, allocations: 3.904 MB / 1.48 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01339/4.291, allocations: 3.264 MB / 1.483 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.553e-05/4.291, allocations: 305.1 kB / 1.483 GB, free: 186.8 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01956/4.31, allocations: 11.83 MB / 1.495 GB, free: 180.3 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02197/4.332, allocations: 16.56 MB / 1.511 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04363/4.376, allocations: 29.74 MB / 1.54 GB, free: 134.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001198/4.376, allocations: 44 kB / 1.54 GB, free: 134.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.6532/5.029, allocations: 81.48 MB / 1.62 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.904e-05/5.03, allocations: 68.84 kB / 1.62 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/5.03, allocations: 146.2 kB / 1.62 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05833/5.088, allocations: 22.36 MB / 1.642 GB, free: 188.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01641/5.105, allocations: 3.729 MB / 1.645 GB, free: 188 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1909/5.295, allocations: 93.97 MB / 1.737 GB, free: 119.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01938/5.315, allocations: 0.8351 MB / 1.738 GB, free: 118.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006253/5.321, allocations: 0.9367 MB / 1.739 GB, free: 117.7 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 (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.01733/5.339, allocations: 5.373 MB / 1.744 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007551/5.346, allocations: 1.059 MB / 1.745 GB, free: 112.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2726/5.619, allocations: 48.64 MB / 1.793 GB, free: 63.66 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/5.619, allocations: 120 kB / 1.793 GB, free: 63.55 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.402e-05/5.619, allocations: 20 kB / 1.793 GB, free: 63.53 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003402/5.619, allocations: 59.77 kB / 1.793 GB, free: 63.47 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5458/6.165, allocations: 73.07 MB / 1.864 GB, free: 176.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001335/6.165, allocations: 7.75 kB / 1.864 GB, free: 176.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01417/6.179, allocations: 2.421 MB / 1.867 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03146/6.211, allocations: 11.9 MB / 1.878 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00367/6.215, allocations: 482.6 kB / 1.879 GB, free: 173.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.103/6.318, allocations: 46.96 MB / 1.925 GB, free: 127.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/6.318, allocations: 6.406 kB / 1.925 GB, free: 127.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2941/6.612, allocations: 62.77 MB / 1.986 GB, free: 65.36 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00938/6.621, allocations: 3.292 MB / 1.989 GB, free: 62.65 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005261/6.627, allocations: 291.9 kB / 1.989 GB, free: 62.37 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01569/6.642, allocations: 0.5306 MB / 1.99 GB, free: 61.84 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009564/6.652, allocations: 1.507 MB / 1.991 GB, free: 60.32 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004394/6.656, allocations: 475.6 kB / 1.992 GB, free: 59.86 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.2906/6.947, allocations: 6.964 MB / 1.999 GB, free: 192.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.61e-07/6.947, allocations: 1.375 kB / 1.999 GB, free: 192.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.03555/6.983, allocations: 6.686 MB / 2.005 GB, free: 192.8 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 (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.01176/6.994, allocations: 3.535 MB / 2.009 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.262/7.256, allocations: 108.8 MB / 2.115 GB, free: 115.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/7.256, allocations: 6.625 kB / 2.115 GB, free: 115.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.04101/7.297, allocations: 14.89 MB / 2.129 GB, free: 102.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01856/7.316, allocations: 2.502 MB / 2.132 GB, free: 100.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08575/7.402, allocations: 37.89 MB / 2.169 GB, free: 67.99 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/7.414, allocations: 9.636 MB / 2.178 GB, free: 60.97 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007389/7.421, allocations: 1.56 MB / 2.18 GB, free: 59.65 MB / 0.5763 GB Notification: Performance of SimCode: time 9.32e-07/7.421, allocations: 0 / 2.18 GB, free: 59.65 MB / 0.5763 GB Notification: Performance of Templates: time 1.36/8.781, allocations: 0.5096 GB / 2.689 GB, free: 134.7 MB / 0.5763 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)