Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.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.HemoglobinMultipleAllostery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery") translateModel(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001177/0.001177, allocations: 192.8 kB / 16.13 MB, free: 6.707 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.391/1.391, 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.2574/0.2574, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 55.91 kB / 369.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 53.61 MB / 423.3 MB, free: 14.81 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.HemoglobinMultipleAllostery): time 0.2256/0.3356, allocations: 43.6 MB / 466.9 MB, free: 35.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06925/0.4048, allocations: 72.57 MB / 0.5268 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005554/0.4104, allocations: 103.2 kB / 0.5269 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005701/0.4162, allocations: 1.453 MB / 0.5283 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02287/0.439, allocations: 5.175 MB / 0.5334 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03564/0.4747, allocations: 9.008 MB / 0.5422 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03536/0.5101, allocations: 25.66 MB / 0.5672 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02577/0.536, allocations: 17.94 MB / 0.5847 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02464/0.5606, allocations: 16.16 MB / 0.6005 GB, free: 368 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.5064/1.067, allocations: 14.88 MB / 0.615 GB, free: 24.67 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01059/1.078, allocations: 1.69 MB / 0.6167 GB, free: 24.67 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.046/1.124, allocations: 9.278 MB / 0.6258 GB, free: 24.67 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01633/1.14, allocations: 5.385 MB / 0.631 GB, free: 24.08 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03803/1.178, allocations: 10.52 MB / 0.6413 GB, free: 21.7 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.08573/1.264, allocations: 39.79 MB / 0.6801 GB, free: 9.738 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.264, allocations: 3.906 kB / 0.6801 GB, free: 9.738 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.473e-06/1.264, allocations: 0 / 0.6801 GB, free: 9.738 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001326/1.265, allocations: 2.688 kB / 0.6802 GB, free: 9.738 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: 3808 * Number of variables: 3808 Notification: Performance of Generate backend data structure: time 0.09756/1.363, allocations: 24.76 MB / 0.7043 GB, free: 9.168 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/1.363, allocations: 8.031 kB / 0.7043 GB, free: 9.16 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02803/1.391, allocations: 3.89 MB / 0.7081 GB, free: 5.262 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0343/1.425, allocations: 11.77 MB / 0.7196 GB, free: 9.902 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002437/1.428, allocations: 2.131 MB / 0.7217 GB, free: 7.555 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01147/1.439, allocations: 1.531 MB / 0.7232 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1028/1.542, allocations: 34.79 MB / 0.7572 GB, free: 3.02 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007413/1.543, allocations: 13.41 kB / 0.7572 GB, free: 3.016 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01128/1.554, allocations: 0.5898 MB / 0.7578 GB, free: 2.426 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000342/1.555, allocations: 364 kB / 0.7581 GB, free: 2.07 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.116/1.671, allocations: 46.83 MB / 0.8038 GB, free: 3.242 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.5995/2.27, allocations: 128.1 MB / 0.929 GB, free: 71.2 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.855/3.125, allocations: 276 MB / 1.199 GB, free: 75.73 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03359/3.159, allocations: 19.81 MB / 1.218 GB, free: 55.88 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4242/3.583, allocations: 87.56 MB / 1.303 GB, free: 187.9 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001252/3.583, allocations: 137.1 kB / 1.304 GB, free: 187.8 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02648/3.61, allocations: 4.437 MB / 1.308 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=995): time 8.363e-05/3.61, allocations: 0.6562 kB / 1.308 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1129): time 0.6734/4.283, allocations: 130.7 MB / 1.435 GB, free: 99.7 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/4.283, allocations: 168.2 kB / 1.436 GB, free: 99.52 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0226/4.306, allocations: 10.15 MB / 1.446 GB, free: 89.44 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.005297/4.311, allocations: 221.7 kB / 1.446 GB, free: 89.21 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.007045/4.319, allocations: 6.875 MB / 1.452 GB, free: 82.32 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.01006/4.329, allocations: 3.916 MB / 1.456 GB, free: 78.44 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01741/4.346, allocations: 3.258 MB / 1.459 GB, free: 75.17 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.362e-05/4.346, allocations: 305.1 kB / 1.46 GB, free: 74.87 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3166/4.663, allocations: 11.82 MB / 1.471 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0277/4.69, allocations: 16.55 MB / 1.487 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06536/4.756, allocations: 29.74 MB / 1.517 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002393/4.756, allocations: 43.62 kB / 1.517 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1889) (initialization): time 0.4374/5.194, allocations: 81.47 MB / 1.596 GB, free: 121.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/5.194, allocations: 68 kB / 1.596 GB, free: 121.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/5.194, allocations: 148 kB / 1.596 GB, free: 121.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0557/5.25, allocations: 22.4 MB / 1.618 GB, free: 99.02 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01616/5.266, allocations: 3.726 MB / 1.622 GB, free: 95.29 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4514/5.717, allocations: 88.27 MB / 1.708 GB, free: 164.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01934/5.737, allocations: 1.142 MB / 1.709 GB, free: 164.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005971/5.743, allocations: 0.9379 MB / 1.71 GB, free: 164.2 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 (1841): * Single equations (assignments): 1838 * 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.02148/5.764, allocations: 5.37 MB / 1.715 GB, free: 162.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007837/5.772, allocations: 1.057 MB / 1.716 GB, free: 162.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2791/6.051, allocations: 48.62 MB / 1.764 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002186/6.052, allocations: 123.7 kB / 1.764 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002443/6.052, allocations: 19.62 kB / 1.764 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006609/6.052, allocations: 59.77 kB / 1.764 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3246/6.377, allocations: 73.04 MB / 1.835 GB, free: 67.52 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001155/6.377, allocations: 4 kB / 1.835 GB, free: 67.51 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01503/6.392, allocations: 2.431 MB / 1.838 GB, free: 65.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2704/6.663, allocations: 11.87 MB / 1.849 GB, free: 174.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005305/6.668, allocations: 476.2 kB / 1.85 GB, free: 174.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1115/6.78, allocations: 42.19 MB / 1.891 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/6.78, allocations: 6.031 kB / 1.891 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.294/7.074, allocations: 62.72 MB / 1.952 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01078/7.085, allocations: 3.295 MB / 1.955 GB, free: 140.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00641/7.091, allocations: 297.6 kB / 1.956 GB, free: 140.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01551/7.106, allocations: 0.7913 MB / 1.957 GB, free: 140 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008043/7.115, allocations: 1.494 MB / 1.958 GB, free: 139.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003784/7.118, allocations: 468.6 kB / 1.958 GB, free: 139 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01319/7.132, allocations: 6.974 MB / 1.965 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.71e-07/7.132, allocations: 0 / 1.965 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.03316/7.165, allocations: 6.666 MB / 1.972 GB, free: 126.6 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 (1234): * Single equations (assignments): 1231 * 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.01075/7.176, allocations: 3.539 MB / 1.975 GB, free: 124.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.06847/7.244, allocations: 27.72 MB / 2.002 GB, free: 96.61 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/7.244, allocations: 4.625 kB / 2.002 GB, free: 96.61 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0441/7.288, allocations: 14.87 MB / 2.017 GB, free: 81.71 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02347/7.312, allocations: 2.334 MB / 2.019 GB, free: 79.57 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3659/7.678, allocations: 44.48 MB / 2.063 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01913/7.697, allocations: 9.943 MB / 2.072 GB, free: 168.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.02444/7.721, allocations: 5.297 MB / 2.077 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01032/7.732, allocations: 1.425 MB / 2.079 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.472e-06/7.732, allocations: 0 / 2.079 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.7096/8.441, allocations: 315.6 MB / 2.387 GB, free: 80.27 MB / 0.5763 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.makefile (rm -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.sim & ./Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllostery.pipe 2>&1)