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.001068/0.001069, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.006767/0.006768, allocations: 171.9 kB / 16.26 MB, free: 6.613 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.221/0.221, allocations: 15.28 MB / 306.7 MB, free: 15.68 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 12 kB / 372.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2898, allocations: 54.62 MB / 426.7 MB, free: 40.54 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.04097/0.3308, allocations: 42.95 MB / 469.7 MB, free: 19.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08219/0.4131, allocations: 71.8 MB / 0.5288 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006979/0.4201, allocations: 95.25 kB / 0.5289 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006048/0.4262, allocations: 1.459 MB / 0.5303 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02101/0.4472, allocations: 5.17 MB / 0.5353 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02926/0.4765, allocations: 9.001 MB / 0.5441 GB, free: 3.332 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03691/0.5135, allocations: 25.67 MB / 0.5692 GB, free: 9.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2733/0.7869, allocations: 17.23 MB / 0.586 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02826/0.8152, allocations: 15.55 MB / 0.6012 GB, free: 11.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03423/0.8494, allocations: 14.1 MB / 0.615 GB, free: 9.598 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01206/0.8616, allocations: 1.426 MB / 0.6164 GB, free: 9.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04001/0.9016, allocations: 9.022 MB / 0.6252 GB, free: 9.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01334/0.915, allocations: 4.978 MB / 0.63 GB, free: 7.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02914/0.9442, allocations: 10.04 MB / 0.6398 GB, free: 3.812 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07344/1.018, allocations: 38.92 MB / 0.6778 GB, free: 11.41 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/1.018, allocations: 0 / 0.6778 GB, free: 11.41 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.365e-06/1.018, allocations: 2.688 kB / 0.6778 GB, free: 11.41 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001237/1.019, allocations: 0 / 0.6778 GB, free: 11.41 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.066/1.085, allocations: 20.17 MB / 0.6975 GB, free: 7.367 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/1.085, allocations: 10.69 kB / 0.6976 GB, free: 7.359 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02419/1.109, allocations: 3.896 MB / 0.7014 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02808/1.137, allocations: 11.47 MB / 0.7126 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002421/1.14, allocations: 2.131 MB / 0.7146 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01016/1.15, allocations: 1.53 MB / 0.7161 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09311/1.243, allocations: 34.81 MB / 0.7501 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005371/1.244, allocations: 10.75 kB / 0.7501 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007856/1.252, allocations: 0.5859 MB / 0.7507 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003207/1.252, allocations: 366.7 kB / 0.7511 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.558/1.81, allocations: 46.84 MB / 0.7968 GB, free: 192.3 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.2758/2.086, allocations: 127.8 MB / 0.9216 GB, free: 104.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 1.037/3.122, allocations: 276.1 MB / 1.191 GB, free: 68.9 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03034/3.153, allocations: 19.81 MB / 1.211 GB, free: 49.04 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4478/3.601, allocations: 87.15 MB / 1.296 GB, free: 171.6 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.867e-05/3.601, allocations: 136.5 kB / 1.296 GB, free: 171.5 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02614/3.627, allocations: 4.439 MB / 1.3 GB, free: 170.4 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=996): time 8.427e-05/3.627, allocations: 0 / 1.3 GB, free: 170.4 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1130): time 0.7632/4.39, allocations: 136.9 MB / 1.434 GB, free: 66.86 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/4.39, allocations: 172.2 kB / 1.434 GB, free: 66.68 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01715/4.408, allocations: 10.16 MB / 1.444 GB, free: 56.58 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.004485/4.412, allocations: 213.7 kB / 1.444 GB, free: 56.36 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.2437/4.656, allocations: 6.894 MB / 1.451 GB, free: 181.4 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.007452/4.663, allocations: 3.909 MB / 1.455 GB, free: 178.9 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00474/4.668, allocations: 1.161 MB / 1.456 GB, free: 178.8 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/4.668, allocations: 304.6 kB / 1.456 GB, free: 178.5 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02174/4.69, allocations: 11.83 MB / 1.468 GB, free: 177.5 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02626/4.716, allocations: 16.56 MB / 1.484 GB, free: 167.3 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05782/4.774, allocations: 29.75 MB / 1.513 GB, free: 151 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003289/4.774, allocations: 42.12 kB / 1.513 GB, free: 151 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.4525/5.227, allocations: 81.54 MB / 1.593 GB, free: 92.82 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003348/5.227, allocations: 71.98 kB / 1.593 GB, free: 92.75 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003881/5.228, allocations: 152 kB / 1.593 GB, free: 92.6 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06114/5.289, allocations: 22.51 MB / 1.615 GB, free: 70.27 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0183/5.307, allocations: 3.729 MB / 1.618 GB, free: 66.54 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.503/5.81, allocations: 88.3 MB / 1.705 GB, free: 147.9 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02451/5.835, allocations: 1.146 MB / 1.706 GB, free: 147.6 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007164/5.842, allocations: 0.94 MB / 1.707 GB, free: 147.5 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.02101/5.863, allocations: 5.372 MB / 1.712 GB, free: 144.6 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006752/5.87, allocations: 1.053 MB / 1.713 GB, free: 144.6 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2838/6.154, allocations: 48.58 MB / 1.76 GB, free: 110.5 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001619/6.154, allocations: 120 kB / 1.76 GB, free: 110.4 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002033/6.154, allocations: 23.83 kB / 1.76 GB, free: 110.4 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005103/6.154, allocations: 62.44 kB / 1.761 GB, free: 110.3 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3387/6.493, allocations: 72.99 MB / 1.832 GB, free: 37.56 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001994/6.493, allocations: 4.094 kB / 1.832 GB, free: 37.55 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3031/6.797, allocations: 2.421 MB / 1.834 GB, free: 162.1 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03354/6.83, allocations: 11.77 MB / 1.846 GB, free: 162.1 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005028/6.835, allocations: 480.2 kB / 1.846 GB, free: 162.1 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1239/6.959, allocations: 42.2 MB / 1.887 GB, free: 151 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/6.959, allocations: 3.688 kB / 1.887 GB, free: 151 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2949/7.254, allocations: 62.71 MB / 1.949 GB, free: 116.3 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01087/7.265, allocations: 3.302 MB / 1.952 GB, free: 113.6 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005639/7.271, allocations: 295.9 kB / 1.952 GB, free: 113.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01395/7.285, allocations: 0.8013 MB / 1.953 GB, free: 112.6 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006908/7.292, allocations: 1.503 MB / 1.954 GB, free: 111.1 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002922/7.295, allocations: 471.6 kB / 1.955 GB, free: 110.6 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.01141/7.306, allocations: 6.966 MB / 1.962 GB, free: 103.7 MB / 0.5608 GB Notification: Performance of sort global known variables: time 3.61e-07/7.306, allocations: 0 / 1.962 GB, free: 103.7 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.03575/7.342, allocations: 6.662 MB / 1.968 GB, free: 97.5 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.01144/7.353, allocations: 3.534 MB / 1.972 GB, free: 94.75 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.06625/7.42, allocations: 27.73 MB / 1.999 GB, free: 67 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/7.42, allocations: 3.188 kB / 1.999 GB, free: 67 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.03933/7.459, allocations: 14.89 MB / 2.013 GB, free: 52.09 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02391/7.483, allocations: 2.33 MB / 2.015 GB, free: 49.84 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3164/7.799, allocations: 44.73 MB / 2.059 GB, free: 152.8 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02403/7.823, allocations: 9.942 MB / 2.069 GB, free: 151.8 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.02355/7.847, allocations: 5.298 MB / 2.074 GB, free: 151.6 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008647/7.856, allocations: 1.422 MB / 2.075 GB, free: 151.6 MB / 0.5608 GB Notification: Performance of SimCode: time 1.152e-06/7.856, allocations: 0 / 2.075 GB, free: 151.6 MB / 0.5608 GB Notification: Performance of Templates: time 0.6845/8.54, allocations: 309.3 MB / 2.378 GB, free: 59.46 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)