Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.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.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") translateModel(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 100.1 kB / 15.88 MB, free: 12 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.001807/0.001807, allocations: 198.9 kB / 16.79 MB, free: 6.809 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.41/1.41, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2468/0.2468, allocations: 15.31 MB / 305.9 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 370.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1171, allocations: 53.6 MB / 423.9 MB, free: 14.78 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.HemoglobinMultipleAllosteryCO): time 0.2547/0.3719, allocations: 48.2 MB / 472.1 MB, free: 32.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.08342/0.4554, allocations: 86.56 MB / 0.5456 GB, free: 9.152 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006641/0.462, allocations: 127.1 kB / 0.5457 GB, free: 9.027 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006294/0.4684, allocations: 1.731 MB / 0.5474 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02185/0.4902, allocations: 6.133 MB / 0.5534 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03615/0.5264, allocations: 10.75 MB / 0.5639 GB, free: 6.652 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.03524/0.5617, allocations: 29.85 MB / 0.593 GB, free: 8.699 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3346/0.8963, allocations: 21.63 MB / 0.6142 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03883/0.9352, allocations: 18.71 MB / 0.6324 GB, free: 13.48 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03887/0.9741, allocations: 17.38 MB / 0.6494 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01507/0.9892, allocations: 1.964 MB / 0.6513 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05118/1.04, allocations: 11.04 MB / 0.6621 GB, free: 9.23 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01661/1.057, allocations: 6.285 MB / 0.6682 GB, free: 7.031 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03225/1.089, allocations: 12.2 MB / 0.6802 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05498/1.144, allocations: 38.73 MB / 0.718 GB, free: 1.922 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/1.144, allocations: 0 / 0.718 GB, free: 1.922 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.963e-06/1.144, allocations: 0 / 0.718 GB, free: 1.922 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001327/1.146, allocations: 2.688 kB / 0.718 GB, free: 1.922 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4405 * Number of variables: 4405 Notification: Performance of Generate backend data structure: time 0.1078/1.254, allocations: 28.86 MB / 0.7462 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.254, allocations: 12.03 kB / 0.7462 GB, free: 5.387 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03136/1.285, allocations: 4.522 MB / 0.7506 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04852/1.334, allocations: 13.68 MB / 0.7639 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00383/1.337, allocations: 2.536 MB / 0.7664 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01627/1.354, allocations: 1.769 MB / 0.7681 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5878/1.942, allocations: 40.44 MB / 0.8076 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007989/1.942, allocations: 17.92 kB / 0.8077 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01013/1.953, allocations: 0.6758 MB / 0.8083 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000443/1.953, allocations: 417 kB / 0.8087 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1085/2.062, allocations: 54.48 MB / 0.8619 GB, free: 160.8 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.3254/2.387, allocations: 149 MB / 1.007 GB, free: 26.61 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 1.533/3.92, allocations: 351.6 MB / 1.351 GB, free: 95.8 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04483/3.964, allocations: 23.07 MB / 1.373 GB, free: 90.55 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1962/4.161, allocations: 102.1 MB / 1.473 GB, free: 18.96 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/4.161, allocations: 147.6 kB / 1.473 GB, free: 18.8 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02795/4.189, allocations: 5.168 MB / 1.478 GB, free: 13.88 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=1160): time 7.219e-05/4.189, allocations: 0 / 1.478 GB, free: 13.88 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1312): time 1.063/5.252, allocations: 149.6 MB / 1.624 GB, free: 105.2 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/5.253, allocations: 181.7 kB / 1.624 GB, free: 105.1 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0194/5.272, allocations: 11.97 MB / 1.636 GB, free: 93.14 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.004759/5.277, allocations: 242.3 kB / 1.636 GB, free: 92.9 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.0054/5.282, allocations: 8.033 MB / 1.644 GB, free: 84.85 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.008411/5.291, allocations: 4.548 MB / 1.649 GB, free: 80.34 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01725/5.308, allocations: 3.802 MB / 1.652 GB, free: 76.52 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 4.747e-05/5.308, allocations: 305.1 kB / 1.653 GB, free: 76.21 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02389/5.332, allocations: 13.85 MB / 1.666 GB, free: 62.35 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0271/5.359, allocations: 19.33 MB / 1.685 GB, free: 40.69 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3245/5.684, allocations: 34.69 MB / 1.719 GB, free: 135.9 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003209/5.684, allocations: 49.84 kB / 1.719 GB, free: 135.9 MB / 0.5608 GB Notification: Performance of matching and sorting (n=2196) (initialization): time 0.4938/6.178, allocations: 93.16 MB / 1.81 GB, free: 99.79 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002216/6.178, allocations: 76.98 kB / 1.81 GB, free: 99.71 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003042/6.178, allocations: 176.1 kB / 1.81 GB, free: 99.54 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06667/6.245, allocations: 25.93 MB / 1.836 GB, free: 73.86 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01974/6.265, allocations: 4.33 MB / 1.84 GB, free: 69.53 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4878/6.753, allocations: 102.3 MB / 1.94 GB, free: 125.1 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02237/6.775, allocations: 1.33 MB / 1.941 GB, free: 124.8 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006837/6.782, allocations: 1.092 MB / 1.942 GB, free: 124.7 MB / 0.5608 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 782 * 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 (2138): * Single equations (assignments): 2135 * 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%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0193/6.801, allocations: 6.21 MB / 1.948 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007363/6.809, allocations: 1.229 MB / 1.949 GB, free: 122.3 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3167/7.125, allocations: 57.57 MB / 2.005 GB, free: 99.64 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000144/7.126, allocations: 137 kB / 2.006 GB, free: 99.64 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000126/7.126, allocations: 22.69 kB / 2.006 GB, free: 99.64 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003899/7.126, allocations: 67.73 kB / 2.006 GB, free: 99.57 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6047/7.731, allocations: 86.22 MB / 2.09 GB, free: 124.7 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001418/7.731, allocations: 2.75 kB / 2.09 GB, free: 124.7 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01635/7.747, allocations: 2.817 MB / 2.093 GB, free: 124.7 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03871/7.786, allocations: 14.34 MB / 2.107 GB, free: 124.6 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004364/7.791, allocations: 0.5474 MB / 2.107 GB, free: 124.6 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1294/7.92, allocations: 50.78 MB / 2.157 GB, free: 110.5 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/7.92, allocations: 3.938 kB / 2.157 GB, free: 110.5 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3258/8.246, allocations: 74.67 MB / 2.23 GB, free: 79.77 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01208/8.258, allocations: 3.872 MB / 2.233 GB, free: 76.58 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006754/8.265, allocations: 339.9 kB / 2.234 GB, free: 76.25 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0162/8.281, allocations: 0.9142 MB / 2.235 GB, free: 75.37 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008216/8.289, allocations: 1.801 MB / 2.236 GB, free: 73.57 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003369/8.293, allocations: 0.5425 MB / 2.237 GB, free: 73.03 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.01353/8.306, allocations: 8.226 MB / 2.245 GB, free: 64.86 MB / 0.5608 GB Notification: Performance of sort global known variables: time 5.81e-07/8.306, allocations: 0 / 2.245 GB, free: 64.86 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.0356/8.342, allocations: 7.818 MB / 2.253 GB, free: 57.46 MB / 0.5608 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 69 (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,relaxed.COHm[1].logn,relaxed.COHm[2].logn,relaxed.COHm[3].logn,relaxed.COHm[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,tensed.COHm[1].logn,tensed.COHm[2].logn,tensed.COHm[3].logn,tensed.COHm[4].logn,CO2_free.logn,CO_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 (1436): * Single equations (assignments): 1433 * 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%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01143/8.353, allocations: 4.194 MB / 2.257 GB, free: 54.33 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.0769/8.43, allocations: 32.63 MB / 2.289 GB, free: 21.77 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/8.43, allocations: 0 / 2.289 GB, free: 21.77 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.3109/8.741, allocations: 17.58 MB / 2.306 GB, free: 147.5 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02541/8.767, allocations: 2.675 MB / 2.308 GB, free: 147.5 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.114/8.881, allocations: 51.64 MB / 2.359 GB, free: 124.4 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01984/8.901, allocations: 11.05 MB / 2.37 GB, free: 121.7 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00981/8.91, allocations: 1.813 MB / 2.371 GB, free: 121.5 MB / 0.5608 GB Notification: Performance of SimCode: time 1.163e-06/8.91, allocations: 0 / 2.371 GB, free: 121.5 MB / 0.5608 GB Notification: Performance of Templates: time 1.546/10.46, allocations: 0.5964 GB / 2.968 GB, free: 153.3 MB / 0.6077 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.makefile (rm -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.sim & ./Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe 2>&1)