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.001188/0.001188, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00124/0.00124, allocations: 199.2 kB / 16.14 MB, free: 6.711 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.359/1.359, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2218/0.2218, allocations: 15.31 MB / 305.3 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.001205/0.001205, allocations: 55.91 kB / 369.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.107, allocations: 53.61 MB / 423.3 MB, free: 14.8 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.2782/0.3853, allocations: 43.7 MB / 467 MB, free: 36.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06924/0.4545, allocations: 72.58 MB / 0.5269 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006791/0.4614, allocations: 103.2 kB / 0.527 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005929/0.4673, allocations: 1.454 MB / 0.5284 GB, free: 9.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01989/0.4872, allocations: 5.166 MB / 0.5335 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03088/0.5181, allocations: 9.021 MB / 0.5423 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02844/0.5466, allocations: 25.66 MB / 0.5673 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02454/0.5712, allocations: 17.94 MB / 0.5849 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02875/0.6, allocations: 16.17 MB / 0.6006 GB, free: 400 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4668/1.067, allocations: 14.89 MB / 0.6152 GB, free: 24.72 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009935/1.077, allocations: 1.687 MB / 0.6168 GB, free: 24.72 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03658/1.113, allocations: 9.276 MB / 0.6259 GB, free: 24.72 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01472/1.128, allocations: 5.398 MB / 0.6312 GB, free: 24.12 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0539/1.182, allocations: 10.52 MB / 0.6414 GB, free: 21.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07988/1.262, allocations: 39.8 MB / 0.6803 GB, free: 9.809 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/1.262, allocations: 0 / 0.6803 GB, free: 9.809 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/1.262, allocations: 3.438 kB / 0.6803 GB, free: 9.809 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001243/1.263, allocations: 2.688 kB / 0.6803 GB, free: 9.809 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.09673/1.36, allocations: 24.77 MB / 0.7045 GB, free: 9.293 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/1.36, allocations: 12.03 kB / 0.7045 GB, free: 9.281 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02907/1.389, allocations: 3.89 MB / 0.7083 GB, free: 5.383 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03231/1.422, allocations: 11.76 MB / 0.7198 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002582/1.424, allocations: 2.131 MB / 0.7219 GB, free: 7.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01146/1.436, allocations: 1.531 MB / 0.7234 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1006/1.536, allocations: 34.81 MB / 0.7574 GB, free: 3.133 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006603/1.537, allocations: 10.84 kB / 0.7574 GB, free: 3.129 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0101/1.547, allocations: 0.5898 MB / 0.7579 GB, free: 2.539 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003442/1.548, allocations: 360.8 kB / 0.7583 GB, free: 2.188 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3242/1.872, allocations: 46.84 MB / 0.804 GB, free: 171.6 MB / 0.545 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.2842/2.156, allocations: 128 MB / 0.9291 GB, free: 94.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8052/2.961, allocations: 276 MB / 1.199 GB, free: 46.24 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0333/2.995, allocations: 19.82 MB / 1.218 GB, free: 26.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4523/3.447, allocations: 87.6 MB / 1.304 GB, free: 148.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001131/3.447, allocations: 138.9 kB / 1.304 GB, free: 148 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02463/3.472, allocations: 4.431 MB / 1.308 GB, free: 147 MB / 0.545 GB Notification: Performance of pre-optimization done (n=996): time 7.745e-05/3.472, allocations: 0.5625 kB / 1.308 GB, free: 147 MB / 0.545 GB Notification: Performance of matching and sorting (n=1130): time 0.9207/4.393, allocations: 136.6 MB / 1.441 GB, free: 159.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/4.393, allocations: 166 kB / 1.442 GB, free: 159.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01701/4.41, allocations: 10.16 MB / 1.451 GB, free: 157.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.004459/4.414, allocations: 213.6 kB / 1.452 GB, free: 157.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005613/4.42, allocations: 6.889 MB / 1.458 GB, free: 153.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.009998/4.43, allocations: 3.916 MB / 1.462 GB, free: 150.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01131/4.441, allocations: 3.265 MB / 1.465 GB, free: 149.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.072e-05/4.441, allocations: 301.7 kB / 1.466 GB, free: 149 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02244/4.464, allocations: 11.83 MB / 1.477 GB, free: 144.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03082/4.495, allocations: 16.56 MB / 1.493 GB, free: 134.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.051/4.546, allocations: 29.74 MB / 1.522 GB, free: 118.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001838/4.546, allocations: 44.31 kB / 1.522 GB, free: 118.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4318/4.978, allocations: 81.47 MB / 1.602 GB, free: 53.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002696/4.978, allocations: 68 kB / 1.602 GB, free: 53.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003235/4.978, allocations: 148 kB / 1.602 GB, free: 53.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2931/5.272, allocations: 22.37 MB / 1.624 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01684/5.288, allocations: 3.728 MB / 1.628 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1995/5.488, allocations: 88.28 MB / 1.714 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02095/5.509, allocations: 1.141 MB / 1.715 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007837/5.517, allocations: 0.9375 MB / 1.716 GB, free: 120.7 MB / 0.545 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.02532/5.542, allocations: 5.38 MB / 1.721 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01029/5.553, allocations: 1.051 MB / 1.722 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2781/5.831, allocations: 48.64 MB / 1.77 GB, free: 70.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000163/5.831, allocations: 120 kB / 1.77 GB, free: 70.83 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001708/5.831, allocations: 21.41 kB / 1.77 GB, free: 70.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004546/5.832, allocations: 59.77 kB / 1.77 GB, free: 70.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5953/6.427, allocations: 73.08 MB / 1.841 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001385/6.427, allocations: 3.625 kB / 1.841 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01575/6.443, allocations: 2.42 MB / 1.844 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03527/6.478, allocations: 11.91 MB / 1.855 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006649/6.485, allocations: 477.9 kB / 1.856 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1059/6.591, allocations: 42.2 MB / 1.897 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/6.591, allocations: 7.812 kB / 1.897 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2825/6.873, allocations: 62.76 MB / 1.958 GB, free: 74.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0121/6.886, allocations: 3.291 MB / 1.961 GB, free: 71.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006765/6.892, allocations: 299.9 kB / 1.962 GB, free: 71.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01543/6.908, allocations: 0.7875 MB / 1.963 GB, free: 70.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008993/6.917, allocations: 1.505 MB / 1.964 GB, free: 68.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004383/6.921, allocations: 475.6 kB / 1.964 GB, free: 68.31 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01312/6.934, allocations: 6.97 MB / 1.971 GB, free: 61.39 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.31e-07/6.934, allocations: 0 / 1.971 GB, free: 61.39 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.03367/6.968, allocations: 6.669 MB / 1.978 GB, free: 55.08 MB / 0.545 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.01106/6.979, allocations: 3.532 MB / 1.981 GB, free: 52.36 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2647/7.244, allocations: 27.74 MB / 2.008 GB, free: 151.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/7.244, allocations: 0.5625 kB / 2.008 GB, free: 151.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.04307/7.287, allocations: 14.89 MB / 2.023 GB, free: 150.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01955/7.307, allocations: 2.331 MB / 2.025 GB, free: 150.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/7.414, allocations: 44.5 MB / 2.069 GB, free: 131.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02159/7.436, allocations: 9.945 MB / 2.078 GB, free: 129.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02481/7.461, allocations: 5.3 MB / 2.083 GB, free: 129.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00879/7.47, allocations: 1.421 MB / 2.085 GB, free: 129.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.243e-06/7.47, allocations: 0 / 2.085 GB, free: 129.1 MB / 0.545 GB Notification: Performance of Templates: time 0.705/8.175, allocations: 315.5 MB / 2.393 GB, free: 4.324 MB / 0.545 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)