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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.09407/0.09407, allocations: 15.29 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 193.2 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 264 MB, free: 4.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 107.2 kB / 318.4 MB, free: 3.445 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 51.78 kB / 382.7 MB, free: 48.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1127, allocations: 53.61 MB / 436.3 MB, free: 1.043 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.05023/0.163, allocations: 41.86 MB / 478.2 MB, free: 7.215 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.3341/0.4972, allocations: 71.91 MB / 0.5372 GB, free: 15.72 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006349/0.5036, allocations: 107.7 kB / 0.5373 GB, free: 15.72 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006129/0.5097, allocations: 1.448 MB / 0.5387 GB, free: 15.69 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02078/0.5306, allocations: 5.002 MB / 0.5436 GB, free: 14.19 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03109/0.5617, allocations: 9.016 MB / 0.5524 GB, free: 11.17 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02821/0.5899, allocations: 25.84 MB / 0.5777 GB, free: 11.54 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02777/0.6177, allocations: 17.94 MB / 0.5952 GB, free: 10.55 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02605/0.6438, allocations: 16.21 MB / 0.611 GB, free: 10.55 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02565/0.6695, allocations: 14.88 MB / 0.6255 GB, free: 12.11 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.008222/0.6778, allocations: 1.684 MB / 0.6272 GB, free: 10.43 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0334/0.7112, allocations: 9.051 MB / 0.636 GB, free: 1.449 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01014/0.7214, allocations: 5.4 MB / 0.6413 GB, free: 12.23 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.02309/0.7445, allocations: 10.52 MB / 0.6516 GB, free: 1.875 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4861/1.231, allocations: 39.58 MB / 0.6902 GB, free: 63.32 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.231, allocations: 0 / 0.6902 GB, free: 63.32 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.463e-06/1.231, allocations: 0 / 0.6902 GB, free: 63.32 MB / 490.8 MB Notification: Performance of Transformations before backend: time 0.001111/1.232, allocations: 1.344 kB / 0.6902 GB, free: 63.32 MB / 490.8 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.08724/1.319, allocations: 24.73 MB / 0.7144 GB, free: 57.18 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/1.319, allocations: 11.84 kB / 0.7144 GB, free: 57.18 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02492/1.344, allocations: 3.887 MB / 0.7182 GB, free: 56.24 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02928/1.373, allocations: 11.77 MB / 0.7297 GB, free: 54.65 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001814/1.375, allocations: 2.132 MB / 0.7317 GB, free: 53.52 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009239/1.385, allocations: 1.533 MB / 0.7332 GB, free: 53.48 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07714/1.462, allocations: 34.8 MB / 0.7672 GB, free: 34.9 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005862/1.462, allocations: 11.84 kB / 0.7672 GB, free: 34.9 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009489/1.472, allocations: 0.5898 MB / 0.7678 GB, free: 34.31 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000247/1.472, allocations: 360 kB / 0.7682 GB, free: 33.96 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07852/1.551, allocations: 46.84 MB / 0.8139 GB, free: 3.125 MB / 0.4949 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.5293/2.08, allocations: 128 MB / 0.9389 GB, free: 182.9 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7379/2.818, allocations: 276 MB / 1.209 GB, free: 156 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03366/2.852, allocations: 19.81 MB / 1.228 GB, free: 152.7 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1585/3.01, allocations: 87.61 MB / 1.313 GB, free: 93.37 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/3.01, allocations: 136.1 kB / 1.314 GB, free: 93.23 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02238/3.033, allocations: 4.427 MB / 1.318 GB, free: 88.9 MB / 0.573 GB Notification: Performance of pre-optimization done (n=996): time 5.115e-05/3.033, allocations: 1.938 kB / 1.318 GB, free: 88.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=1130): time 0.8925/3.925, allocations: 136.5 MB / 1.451 GB, free: 196.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/3.925, allocations: 168.4 kB / 1.451 GB, free: 196.1 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/3.937, allocations: 10.15 MB / 1.461 GB, free: 191.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.003559/3.941, allocations: 214.7 kB / 1.462 GB, free: 191 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00381/3.945, allocations: 6.903 MB / 1.468 GB, free: 186.4 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.007998/3.953, allocations: 3.912 MB / 1.472 GB, free: 183.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01424/3.967, allocations: 3.263 MB / 1.475 GB, free: 181.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 4.002e-05/3.967, allocations: 302.7 kB / 1.476 GB, free: 181 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01787/3.985, allocations: 11.83 MB / 1.487 GB, free: 174.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02036/4.005, allocations: 16.56 MB / 1.503 GB, free: 159.9 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04087/4.046, allocations: 29.75 MB / 1.532 GB, free: 128 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/4.046, allocations: 44 kB / 1.532 GB, free: 128 MB / 0.573 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.6634/4.71, allocations: 81.46 MB / 1.612 GB, free: 188.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/4.71, allocations: 69.66 kB / 1.612 GB, free: 188.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/4.71, allocations: 148.1 kB / 1.612 GB, free: 188.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05711/4.767, allocations: 22.37 MB / 1.634 GB, free: 185.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01657/4.784, allocations: 3.732 MB / 1.638 GB, free: 185.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1629/4.947, allocations: 88.27 MB / 1.724 GB, free: 117.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0184/4.965, allocations: 1.152 MB / 1.725 GB, free: 116.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005394/4.971, allocations: 0.9328 MB / 1.726 GB, free: 115.7 MB / 0.573 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.01558/4.986, allocations: 5.37 MB / 1.731 GB, free: 110.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00798/4.994, allocations: 1.052 MB / 1.732 GB, free: 110.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2693/5.263, allocations: 48.65 MB / 1.78 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000154/5.264, allocations: 120 kB / 1.78 GB, free: 61.41 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.961e-05/5.264, allocations: 19.94 kB / 1.78 GB, free: 61.39 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004362/5.264, allocations: 59.77 kB / 1.78 GB, free: 61.33 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5729/5.837, allocations: 73.08 MB / 1.851 GB, free: 173.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-05/5.837, allocations: 3.562 kB / 1.851 GB, free: 173.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01348/5.851, allocations: 2.422 MB / 1.854 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03003/5.881, allocations: 11.9 MB / 1.865 GB, free: 170.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003603/5.884, allocations: 481 kB / 1.866 GB, free: 170.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08615/5.971, allocations: 42.19 MB / 1.907 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/5.971, allocations: 6.625 kB / 1.907 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6934/6.664, allocations: 146.2 MB / 2.05 GB, free: 156.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01261/6.677, allocations: 3.295 MB / 2.053 GB, free: 154.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006663/6.683, allocations: 296.3 kB / 2.053 GB, free: 154.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01569/6.699, allocations: 0.7935 MB / 2.054 GB, free: 154.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008316/6.708, allocations: 1.506 MB / 2.055 GB, free: 154.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003756/6.711, allocations: 470.9 kB / 2.056 GB, free: 154 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0118/6.723, allocations: 6.974 MB / 2.063 GB, free: 151.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.41e-07/6.723, allocations: 0 / 2.063 GB, free: 151.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.05398/6.777, allocations: 8.269 MB / 2.071 GB, free: 147.5 MB / 0.573 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.009519/6.787, allocations: 3.458 MB / 2.074 GB, free: 145.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.06303/6.85, allocations: 27.73 MB / 2.101 GB, free: 121.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/6.85, allocations: 6.594 kB / 2.101 GB, free: 121.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.03725/6.887, allocations: 14.89 MB / 2.116 GB, free: 109.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01774/6.905, allocations: 2.332 MB / 2.118 GB, free: 107.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08747/6.992, allocations: 52.59 MB / 2.169 GB, free: 56.88 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2868/7.279, allocations: 10.24 MB / 2.179 GB, free: 165.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0309/7.31, allocations: 5.537 MB / 2.185 GB, free: 165.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/7.32, allocations: 1.527 MB / 2.186 GB, free: 165.3 MB / 0.573 GB Notification: Performance of SimCode: time 7.62e-07/7.32, allocations: 1.062 kB / 2.186 GB, free: 165.3 MB / 0.573 GB Notification: Performance of Templates: time 0.6531/7.973, allocations: 356.4 MB / 2.534 GB, free: 55.93 MB / 0.573 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)