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.001154/0.001154, allocations: 108 kB / 15.61 MB, free: 148 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.001154/0.001155, allocations: 193.6 kB / 16.53 MB, free: 6.664 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.17/1.17, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1665/0.1665, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 59.91 kB / 370.3 MB, free: 3.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08102, allocations: 53.61 MB / 423.9 MB, free: 14.31 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.1825/0.2635, allocations: 41.7 MB / 465.6 MB, free: 36.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05797/0.3215, allocations: 72.72 MB / 0.5257 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003327/0.3249, allocations: 59.62 kB / 0.5258 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00411/0.329, allocations: 1.628 MB / 0.5274 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01594/0.345, allocations: 5.916 MB / 0.5332 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02469/0.3697, allocations: 10.22 MB / 0.5431 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02473/0.3944, allocations: 26.58 MB / 0.5691 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02219/0.4167, allocations: 21.98 MB / 0.5906 GB, free: 10.75 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3391/0.7558, allocations: 17.43 MB / 0.6076 GB, free: 24.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0196/0.7754, allocations: 16.2 MB / 0.6234 GB, free: 24.3 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009114/0.7846, allocations: 3.095 MB / 0.6264 GB, free: 24.3 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03059/0.8152, allocations: 10.7 MB / 0.6369 GB, free: 24.3 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01039/0.8256, allocations: 6.979 MB / 0.6437 GB, free: 23.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01662/0.8422, allocations: 12.16 MB / 0.6556 GB, free: 16.82 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04315/0.8854, allocations: 41.85 MB / 0.6964 GB, free: 12.8 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.8854, allocations: 0 / 0.6964 GB, free: 12.8 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.8854, allocations: 0 / 0.6964 GB, free: 12.8 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007764/0.8862, allocations: 0 / 0.6964 GB, free: 12.8 MB / 478.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.06917/0.9554, allocations: 24.77 MB / 0.7206 GB, free: 4.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.9554, allocations: 8.031 kB / 0.7206 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0199/0.9754, allocations: 3.89 MB / 0.7244 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02127/0.9966, allocations: 11.76 MB / 0.7359 GB, free: 5.047 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001337/0.998, allocations: 2.136 MB / 0.738 GB, free: 2.695 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005348/1.003, allocations: 1.535 MB / 0.7395 GB, free: 1.16 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.056/1.059, allocations: 34.8 MB / 0.7735 GB, free: 14.15 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002341/1.06, allocations: 11.03 kB / 0.7735 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002605/1.062, allocations: 0.5898 MB / 0.7741 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002056/1.062, allocations: 361.2 kB / 0.7744 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3745/1.437, allocations: 46.84 MB / 0.8202 GB, free: 185.3 MB / 0.5608 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.2151/1.652, allocations: 128.3 MB / 0.9454 GB, free: 101.1 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6718/2.324, allocations: 276 MB / 1.215 GB, free: 63.05 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02568/2.35, allocations: 19.82 MB / 1.234 GB, free: 44.5 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2677/2.617, allocations: 87.56 MB / 1.32 GB, free: 165.3 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.072e-05/2.617, allocations: 137.4 kB / 1.32 GB, free: 165.2 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01564/2.633, allocations: 4.511 MB / 1.324 GB, free: 164.2 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=996): time 2.419e-05/2.633, allocations: 0 / 1.324 GB, free: 164.2 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1130): time 0.6287/3.262, allocations: 136.6 MB / 1.458 GB, free: 62.58 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/3.262, allocations: 168.2 kB / 1.458 GB, free: 62.4 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1837/3.446, allocations: 10.16 MB / 1.468 GB, free: 175.5 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.003414/3.449, allocations: 211.8 kB / 1.468 GB, free: 175.5 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.003624/3.453, allocations: 6.896 MB / 1.475 GB, free: 173.9 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.005088/3.458, allocations: 3.916 MB / 1.479 GB, free: 171.1 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004837/3.463, allocations: 3.27 MB / 1.482 GB, free: 169.9 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 3.328e-05/3.463, allocations: 301.1 kB / 1.482 GB, free: 169.6 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0143/3.477, allocations: 11.82 MB / 1.494 GB, free: 165.3 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.019/3.496, allocations: 16.56 MB / 1.51 GB, free: 155.1 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0385/3.535, allocations: 29.74 MB / 1.539 GB, free: 139.4 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/3.535, allocations: 46.06 kB / 1.539 GB, free: 139.4 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.3891/3.924, allocations: 81.47 MB / 1.618 GB, free: 86.3 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003678/3.924, allocations: 72 kB / 1.619 GB, free: 86.23 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004119/3.925, allocations: 148 kB / 1.619 GB, free: 86.08 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05387/3.979, allocations: 22.37 MB / 1.641 GB, free: 63.87 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01629/3.995, allocations: 3.725 MB / 1.644 GB, free: 60.14 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3545/4.35, allocations: 93.97 MB / 1.736 GB, free: 139.1 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01577/4.365, allocations: 0.8374 MB / 1.737 GB, free: 138.7 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003366/4.369, allocations: 0.9353 MB / 1.738 GB, free: 138.4 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.01017/4.379, allocations: 5.378 MB / 1.743 GB, free: 135.3 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003236/4.382, allocations: 1.056 MB / 1.744 GB, free: 135.3 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2401/4.622, allocations: 48.64 MB / 1.791 GB, free: 98.98 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001073/4.622, allocations: 120 kB / 1.792 GB, free: 98.86 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001192/4.623, allocations: 16 kB / 1.792 GB, free: 98.85 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003473/4.623, allocations: 64.8 kB / 1.792 GB, free: 98.79 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4661/5.089, allocations: 73.08 MB / 1.863 GB, free: 145 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/5.089, allocations: 3.594 kB / 1.863 GB, free: 145 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01306/5.102, allocations: 2.418 MB / 1.865 GB, free: 145 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0294/5.132, allocations: 11.91 MB / 1.877 GB, free: 144.9 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003488/5.135, allocations: 475.6 kB / 1.877 GB, free: 144.9 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09905/5.234, allocations: 46.95 MB / 1.923 GB, free: 131.1 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/5.234, allocations: 4.75 kB / 1.923 GB, free: 131.1 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2533/5.488, allocations: 62.79 MB / 1.985 GB, free: 100.9 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00899/5.497, allocations: 3.291 MB / 1.988 GB, free: 98.14 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004118/5.501, allocations: 295.9 kB / 1.988 GB, free: 97.85 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01263/5.513, allocations: 0.5234 MB / 1.989 GB, free: 97.32 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00515/5.519, allocations: 1.512 MB / 1.99 GB, free: 95.81 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001927/5.52, allocations: 475.6 kB / 1.991 GB, free: 95.35 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.009369/5.53, allocations: 6.97 MB / 1.997 GB, free: 88.43 MB / 0.5608 GB Notification: Performance of sort global known variables: time 3.11e-07/5.53, allocations: 0 / 1.997 GB, free: 88.43 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.02454/5.554, allocations: 6.68 MB / 2.004 GB, free: 82.11 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.008688/5.563, allocations: 3.533 MB / 2.007 GB, free: 79.46 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.4478/6.011, allocations: 108.8 MB / 2.114 GB, free: 157.2 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/6.011, allocations: 2.156 kB / 2.114 GB, free: 157.2 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.03873/6.05, allocations: 14.9 MB / 2.128 GB, free: 144.7 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02234/6.072, allocations: 2.5 MB / 2.131 GB, free: 142.8 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07651/6.149, allocations: 38.2 MB / 2.168 GB, free: 110 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01085/6.16, allocations: 9.941 MB / 2.178 GB, free: 102.7 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.01498/6.175, allocations: 5.209 MB / 2.183 GB, free: 99.48 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004076/6.179, allocations: 1.435 MB / 2.184 GB, free: 98.27 MB / 0.5608 GB Notification: Performance of SimCode: time 8.71e-07/6.179, allocations: 0 / 2.184 GB, free: 98.27 MB / 0.5608 GB Notification: Performance of Templates: time 0.7737/6.952, allocations: 327 MB / 2.503 GB, free: 140.8 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)